|
|
@@ -71,9 +71,13 @@ fi
|
|
|
auth_hash=$($BIN/v-generate-password-hash htpasswd htpasswd $password)
|
|
|
touch $htpasswd
|
|
|
chmod 640 $htpasswd $htaccess
|
|
|
+chgrp $user $htpasswd $htaccess
|
|
|
sed -i "/^$auth_user:/d" $htpasswd
|
|
|
echo "$auth_user:$auth_hash" >> $htpasswd
|
|
|
|
|
|
+cp -p "$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.conf_htaccess" "$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.conf_htaccess"
|
|
|
+cp -p "$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd" "$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.htpasswd"
|
|
|
+
|
|
|
# Restarting web server
|
|
|
if [ "$restart" != 'no' ] && [ "$restart_required" = 'yes' ]; then
|
|
|
$BIN/v-restart-web
|