File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -56,18 +56,19 @@ email=$(grep CONTACT $HESTIA/data/users/admin/user.conf |cut -f 2 -d \')
5656
5757# Checking load average
5858la=$( cat /proc/loadavg | cut -f 1 -d ' ' | cut -f 1 -d ' .' )
59- i=0
59+ # i=0
6060while [ " $la " -ge " $BACKUP_LA_LIMIT " ]; do
6161 echo -e " $( date " +%F %T" ) Load Average $la "
6262 sleep 60
63- if [ " $i " -ge " 15" ]; then
64- la_error=" LoadAverage $la is above threshold"
65- echo " $la_error " | $SENDMAIL -s " $subj " $email $notify
66- sed -i " / $user /d" $HESTIA /data/queue/backup.pipe
67- check_result $E_LA " $la_error "
68- fi
63+ wait_for_backup_if_it_is_not_time_for_backup
64+ # if [ "$i" -ge "15" ]; then
65+ # la_error="LoadAverage $la is above threshold"
66+ # echo "$la_error" |$SENDMAIL -s "$subj" $email $notify
67+ # sed -i "/ $user /d" $HESTIA/data/queue/backup.pipe
68+ # check_result $E_LA "$la_error"
69+ # fi
6970 la=$( cat /proc/loadavg | cut -f 1 -d ' ' | cut -f 1 -d ' .' )
70- (( ++ i))
71+ # (( ++i))
7172done
7273
7374if [ -z " $BACKUP_TEMP " ]; then
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ source $HESTIA/func/main.sh
1919
2020# JSON list function
2121json_list () {
22+ issuer=$( echo " $issuer " | sed -e ' s/"/\\"/g' -e " s/%quote%/'/g" )
2223 echo ' {'
2324 echo -e " \t\" $domain \" : {"
2425 echo " \" CRT\" : \" $crt \" ,"
You can’t perform that action at this time.
0 commit comments