v-update-sys-vesta-all 914 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. # info: update all vesta packages
  3. # options: USER [RESTART]
  4. #
  5. # The function of updating all vesta packages
  6. #----------------------------------------------------------#
  7. # Variable&Function #
  8. #----------------------------------------------------------#
  9. # Importing system variables
  10. source /etc/profile
  11. # Includes
  12. source $VESTA/func/main.sh
  13. source $VESTA/conf/vesta.conf
  14. #----------------------------------------------------------#
  15. # Action #
  16. #----------------------------------------------------------#
  17. # Starting update loop
  18. for package in vesta vesta-nginx vesta-php; do
  19. $BIN/v-update-sys-vesta "$package"
  20. done
  21. #----------------------------------------------------------#
  22. # Vesta #
  23. #----------------------------------------------------------#
  24. exit