Browse Source

fixed autoupdate function

Serghey Rodin 11 years ago
parent
commit
5a99774dc1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      bin/v-add-cron-vesta-autoupdate
  2. 1 1
      bin/v-update-sys-vesta-all

+ 1 - 1
bin/v-add-cron-vesta-autoupdate

@@ -39,7 +39,7 @@ min=$(gen_password '012345' '2')
 hour=$(gen_password '1234567' '1')
 hour=$(gen_password '1234567' '1')
 day='*'
 day='*'
 month='*'
 month='*'
-WDAY='*'
+wday='*'
 command='sudo /usr/local/vesta/bin/v-update-sys-vesta-all'
 command='sudo /usr/local/vesta/bin/v-update-sys-vesta-all'
 
 
 # Concatenating cron string
 # Concatenating cron string

+ 1 - 1
bin/v-update-sys-vesta-all

@@ -19,7 +19,7 @@ source $VESTA/conf/vesta.conf
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
 # Starting update loop
 # Starting update loop
-for package in vesta vesta-ngin vesta-php; do
+for package in vesta vesta-nginx vesta-php; do
     $BIN/v-update-sys-vesta "$package"
     $BIN/v-update-sys-vesta "$package"
 done
 done