mirror of
https://github.com/myvesta/vesta
synced 2025-07-16 10:03:23 -07:00
33 lines
914 B
Bash
Executable file
33 lines
914 B
Bash
Executable file
#!/bin/bash
|
|
# info: update all vesta packages
|
|
# options: USER [RESTART]
|
|
#
|
|
# The function of updating all vesta packages
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
# Variable&Function #
|
|
#----------------------------------------------------------#
|
|
|
|
# Importing system variables
|
|
source /etc/profile
|
|
|
|
# Includes
|
|
source $VESTA/func/main.sh
|
|
source $VESTA/conf/vesta.conf
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
# Action #
|
|
#----------------------------------------------------------#
|
|
|
|
# Starting update loop
|
|
for package in vesta vesta-nginx vesta-php; do
|
|
$BIN/v-update-sys-vesta "$package"
|
|
done
|
|
|
|
#----------------------------------------------------------#
|
|
# Vesta #
|
|
#----------------------------------------------------------#
|
|
|
|
exit
|