fixed test scripts

This commit is contained in:
Serghey Rodin 2012-04-05 18:03:06 +03:00
commit 719a38ca78
6 changed files with 78 additions and 19 deletions

View file

@ -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

View file

@ -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))

View file

@ -12,7 +12,7 @@
# Argument defenition
user=$1
job=$2
restart="$3"
restart="${3-yes}"
# Includes
source $VESTA/conf/vesta.conf