mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
fixed test scripts
This commit is contained in:
parent
4b44937540
commit
719a38ca78
6 changed files with 78 additions and 19 deletions
|
@ -46,8 +46,8 @@ is_object_free 'cron' 'JOB' "$job"
|
|||
|
||||
# Concatenating cron string
|
||||
command=$(echo $command | sed -e "s/'/%quote%/g" -e "s/:/%dots%/g")
|
||||
str="JOB='$job' MIN='$min' HOUR='$hour' DAY='$day' MONTH='$month WDAY='$wday'"
|
||||
str="$v_str' CMD='$command' SUSPENDED='no' TIME='$TIME' DATE='$DATE'"
|
||||
str="JOB='$job' MIN='$min' HOUR='$hour' DAY='$day' MONTH='$month' WDAY='$wday'"
|
||||
str="$str CMD='$command' SUSPENDED='no' TIME='$TIME' DATE='$DATE'"
|
||||
|
||||
# Adding to crontab
|
||||
echo "$str" >> $VESTA/data/users/$user/cron.conf
|
||||
|
|
|
@ -31,9 +31,9 @@ json_list_domain() {
|
|||
echo -e "\t\"$value\": {"
|
||||
else
|
||||
if [ "$fileds_count" -eq "$i" ]; then
|
||||
echo -e "\t\t\"${field//$/}\": \"$value\","
|
||||
else
|
||||
echo -e "\t\t\"${field//$/}\": \"$value\""
|
||||
else
|
||||
echo -e "\t\t\"${field//$/}\": \"$value\","
|
||||
fi
|
||||
fi
|
||||
(( ++i))
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# Argument defenition
|
||||
user=$1
|
||||
job=$2
|
||||
restart="$3"
|
||||
restart="${3-yes}"
|
||||
|
||||
# Includes
|
||||
source $VESTA/conf/vesta.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue