permissions on htpasswd file

This commit is contained in:
Serghey Rodin 2015-07-13 23:20:36 +03:00
commit edcd549e4c
3 changed files with 48 additions and 14 deletions

View file

@ -54,7 +54,7 @@ sed -i "/^$auth_user:/d" $htpasswd
# Deleting password protection
if [ "$(echo "$AUTH_USER" |tr : '\n' |wc -l)" -le 1 ]; then
rm -f $htaccess
rm -f $htaccess $htpasswd
restart_required='yes'
fi