mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
permissions on htpasswd file
This commit is contained in:
parent
3e3ecca996
commit
edcd549e4c
3 changed files with 48 additions and 14 deletions
|
@ -74,6 +74,7 @@ fi
|
|||
# Adding httpasswd user
|
||||
auth_hash=$($BIN/v-generate-password-hash htpasswd htpasswd $password)
|
||||
touch $htpasswd
|
||||
chmod 640 $htpasswd $htaccess
|
||||
sed -i "/^$auth_user:/d" $htpasswd
|
||||
echo "$auth_user:$auth_hash" >> $htpasswd
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue