File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -188,8 +188,8 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
188188 if [ -z " $( grep " $conf " $proxy_conf ) " ]; then
189189 echo " include $conf ;" >> $proxy_conf
190190 fi
191- if [ -x $WEBTPL /$PROXY_SYSTEM /$template .sh ]; then
192- $WEBTPL /$PROXY_SYSTEM /$template .sh $user $domain $ip $HOMEDIR $docroot
191+ if [ -x $WEBTPL /$PROXY_SYSTEM /$proxy .sh ]; then
192+ $WEBTPL /$PROXY_SYSTEM /$proxy .sh $user $domain $ip $HOMEDIR $docroot
193193 fi
194194fi
195195
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
227227
228228 # Backup files
229229 cd $HOMEDIR /$user /web/$domain
230- find . ${fargs[@]} -type f -print0 | \
230+ find . ${fargs[@]} -type f -or -type l - print0 | \
231231 tar -cpf $tmpdir /web/$domain /domain_data.tar --null -T -
232232
233233 # Backup empty folders
@@ -490,7 +490,7 @@ if [ "$USER" != '*' ]; then
490490 IFS=$' \n '
491491 set -f
492492 i=0
493- for udir in $( ls | egrep -v " conf|web|dns|mail" ) ; do
493+ for udir in $( ls -a | egrep -v " conf|web|dns|mail|^\.\.$|^\.$ " ) ; do
494494 check_exl=$( echo -e " ${USER// ,/ \n } " | grep " ^$udir $" )
495495 if [ -z " $check_exl " ]; then
496496 (( i ++ ))
@@ -499,7 +499,7 @@ if [ "$USER" != '*' ]; then
499499 msg=" $msg \n$( date " +%F %T" ) adding directory $udir "
500500
501501 # Backup files
502- find ./$udir ${fargs[@]} -type f -print0 | \
502+ find ./$udir ${fargs[@]} -type f -or -type l - print0 | \
503503 tar -cpf $tmpdir /user_dir/$udir .tar --null -T -
504504
505505 # Backup empty folders
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ is_web_template_valid() {
1111
1212# Proxy template check
1313is_proxy_template_valid () {
14- template =$1
15- t=" $WEBTPL /$PROXY_SYSTEM /$template .tpl"
16- s=" $WEBTPL /$PROXY_SYSTEM /$template .stpl"
14+ proxy =$1
15+ t=" $WEBTPL /$PROXY_SYSTEM /$proxy .tpl"
16+ s=" $WEBTPL /$PROXY_SYSTEM /$proxy .stpl"
1717 if [ ! -e $t ] || [ ! -e $s ]; then
18- echo " Error: proxy template $template not found"
18+ echo " Error: proxy template $proxy not found"
1919 log_event " $E_NOTEXIST " " $EVENT "
2020 exit $E_NOTEXIST
2121 fi
You can’t perform that action at this time.
0 commit comments