We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1623c9 commit ea03be3Copy full SHA for ea03be3
bin/v-add-web-domain-httpauth
@@ -71,9 +71,13 @@ fi
71
auth_hash=$($BIN/v-generate-password-hash htpasswd htpasswd $password)
72
touch $htpasswd
73
chmod 640 $htpasswd $htaccess
74
+chgrp $user $htpasswd $htaccess
75
sed -i "/^$auth_user:/d" $htpasswd
76
echo "$auth_user:$auth_hash" >> $htpasswd
77
78
+cp -p "$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.conf_htaccess" "$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.conf_htaccess"
79
+cp -p "$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd" "$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.htpasswd"
80
+
81
# Restarting web server
82
if [ "$restart" != 'no' ] && [ "$restart_required" = 'yes' ]; then
83
$BIN/v-restart-web
0 commit comments