We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea03be3 commit 60df6eeCopy full SHA for 60df6ee
1 file changed
bin/v-add-web-domain-httpauth
@@ -75,8 +75,8 @@ 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"
+ln -s "$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.conf_htaccess" "$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.conf_htaccess"
+ln -s "$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
0 commit comments