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 7b2b895 commit 0a51da2Copy full SHA for 0a51da2
bin/v-add-web-domain-httpauth
@@ -78,8 +78,12 @@ sed -i "/^$auth_user:/d" $htpasswd
78
echo "$auth_user:$auth_hash" >> $htpasswd
79
80
# Symbolic link for secure web templates
81
-ln -s $htpasswd $shtpasswd
+if [ ! -L $shtpasswd ]; then
82
+ ln -s $htpasswd $shtpasswd
83
+fi
84
+if [ ! -L $shtaccess ]; then
85
ln -s $htaccess $shtaccess
86
87
88
# Restarting web server
89
if [ "$restart" != 'no' ] && [ "$restart_required" = 'yes' ]; then
0 commit comments