Skip to content

Commit 7b2b895

Browse files
authored
Remove symlink to httpauth config files
1 parent b44fcd8 commit 7b2b895

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/v-delete-web-domain-httpauth

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ source $VESTA/conf/vesta.conf
2323
# Defining htpasswd file
2424
htaccess="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.conf_htaccess"
2525
htpasswd="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd"
26-
26+
shtaccess="$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.conf_htaccess"
27+
shtpasswd="$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.htpasswd"
2728

2829
#----------------------------------------------------------#
2930
# Verifications #
@@ -54,7 +55,7 @@ sed -i "/^$auth_user:/d" $htpasswd
5455

5556
# Deleting password protection
5657
if [ "$(echo "$AUTH_USER" |tr : '\n' |wc -l)" -le 1 ]; then
57-
rm -f $htaccess $htpasswd
58+
rm -f $htaccess $htpasswd $shtaccess $shtpasswd
5859
restart_required='yes'
5960
fi
6061

0 commit comments

Comments
 (0)