mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Remove symlink to httpauth config files
This commit is contained in:
parent
b44fcd8929
commit
7b2b895d57
1 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,8 @@ source $VESTA/conf/vesta.conf
|
||||||
# Defining htpasswd file
|
# Defining htpasswd file
|
||||||
htaccess="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.conf_htaccess"
|
htaccess="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.conf_htaccess"
|
||||||
htpasswd="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd"
|
htpasswd="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd"
|
||||||
|
shtaccess="$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.conf_htaccess"
|
||||||
|
shtpasswd="$HOMEDIR/$user/conf/web/s$WEB_SYSTEM.$domain.htpasswd"
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Verifications #
|
# Verifications #
|
||||||
|
@ -54,7 +55,7 @@ sed -i "/^$auth_user:/d" $htpasswd
|
||||||
|
|
||||||
# Deleting password protection
|
# Deleting password protection
|
||||||
if [ "$(echo "$AUTH_USER" |tr : '\n' |wc -l)" -le 1 ]; then
|
if [ "$(echo "$AUTH_USER" |tr : '\n' |wc -l)" -le 1 ]; then
|
||||||
rm -f $htaccess $htpasswd
|
rm -f $htaccess $htpasswd $shtaccess $shtpasswd
|
||||||
restart_required='yes'
|
restart_required='yes'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue