We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b44fcd8 commit 7b2b895Copy full SHA for 7b2b895
1 file changed
bin/v-delete-web-domain-httpauth
@@ -23,7 +23,8 @@ source $VESTA/conf/vesta.conf
23
# Defining htpasswd file
24
htaccess="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.conf_htaccess"
25
htpasswd="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd"
26
-
+shtaccess="$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.conf_htaccess"
27
+shtpasswd="$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.htpasswd"
28
29
#----------------------------------------------------------#
30
# Verifications #
@@ -54,7 +55,7 @@ sed -i "/^$auth_user:/d" $htpasswd
54
55
56
# Deleting password protection
57
if [ "$(echo "$AUTH_USER" |tr : '\n' |wc -l)" -le 1 ]; then
- rm -f $htaccess $htpasswd
58
+ rm -f $htaccess $htpasswd $shtaccess $shtpasswd
59
restart_required='yes'
60
fi
61
0 commit comments