@@ -100,31 +100,6 @@ if [ -e "$V_USERS/$user/backup.excludes" ]; then
100100 cp -r $V_USERS /$user /backup.excludes $tmpdir /vesta/
101101fi
102102
103- if [ -e " $V_USERS /$user /cron.conf" ]; then
104- echo -e " $( date " +%F %T" ) cron.conf"
105- cp -r $V_USERS /$user /cron.conf $tmpdir /vesta/
106- fi
107-
108- if [ -e " $V_USERS /$user /db.conf" ]; then
109- echo -e " $( date " +%F %T" ) db.conf"
110- cp -r $V_USERS /$user /db.conf $tmpdir /vesta/
111- fi
112-
113- if [ -e " $V_USERS /$user /dns.conf" ]; then
114- echo -e " $( date " +%F %T" ) dns.conf"
115- cp -r $V_USERS /$user /dns.conf $tmpdir /vesta/
116- fi
117-
118- if [ -e " $V_USERS /$user /mail.conf" ]; then
119- echo -e " $( date " +%F %T" ) mail.conf"
120- cp -r $V_USERS /$user /mail.conf $tmpdir /vesta/
121- fi
122-
123-
124- if [ -e " $V_USERS /$user /web.conf" ]; then
125- echo -e " $( date " +%F %T" ) web.conf"
126- cp -r $V_USERS /$user /web.conf $tmpdir /vesta/
127- fi
128103
129104echo
130105
205180 sed -n " $top_line ,$bottom_line p" $conf > conf/httpd.conf
206181
207182 # SSL check
208- if [ ! -z " $SSL " ]; then
183+ if [ " $SSL " = ' yes ' ]; then
209184 tpl_file=" $V_WEBTPL /apache_$TPL .stpl"
210185 conf=" $V_HOME /$user /conf/shttpd.conf"
211186 get_web_config_brds
221196 sed -n " $top_line ,$bottom_line p" $conf > conf/nginx.conf
222197
223198 # SSL check
224- if [ ! -z " $SSL " ] ; then
199+ if [ " $SSL " = ' yes ' ] ; then
225200 tpl_file=" $V_WEBTPL /ngingx_vhost_$NGINX .stpl"
226201 conf=" $V_HOME /$user /conf/snginx.conf"
227202 get_web_config_brds
235210 done
236211
237212 # SSL Certificates
238- if [ ! -z " $SSL " ] ; then
239- cp $V_HOME /$user /conf/$SSL .* ssl/
213+ if [ " $SSL " = ' yes ' ] ; then
214+ cp $V_HOME /$user /conf/ssl. $domain .* ssl/
240215 fi
241216
242217 tar -rf $tmpdir /web/$domain /$domain .tar conf ssl
@@ -353,23 +328,6 @@ then
353328 echo
354329fi
355330
356- # SSL CERTIFICATES
357- if [ ! -z " $WEB_SSL " ] && [ " $WEB_SSL " != ' no' ] && [ " $SSL " != ' *' ]; then
358- echo " -- SSL --"
359- mkdir $tmpdir /ssl
360-
361- # Backingup ssl certificates
362- cert_list=$( ls $V_USERS /$user /ssl/ | grep " .crt" | \
363- sed -e " s/\.crt$//" | \
364- tr ' \n' ' ' | \
365- sed -e ' s/ $//' )
366- for cert in $cert_list ; do
367- echo -e " $( date " +%F %T" ) $cert "
368- cp $V_USERS /$user /ssl/$cert .* $tmpdir /ssl/
369- done
370- echo
371- fi
372-
373331# Get backup size
374332size=" $( du -shm $tmpdir | cut -f 1) "
375333
@@ -539,7 +497,6 @@ backup_str="$backup_str WEB='${web_list// /,}'"
539497backup_str=" $backup_str DNS='${dns_list// / ,} '"
540498backup_str=" $backup_str MAIL='${mail_list// / ,} '"
541499backup_str=" $backup_str DB='${db_list// / ,} '"
542- backup_str=" $backup_str SSL='${cert_list// / ,} '"
543500backup_str=" $backup_str CRON='$cron_list '"
544501echo " $backup_str " >> $V_USERS /$user /backup.conf
545502
0 commit comments