mirror of
https://github.com/myvesta/vesta.git
synced 2024-12-03 02:40:25 -08:00
38 lines
1.0 KiB
Bash
Executable File
38 lines
1.0 KiB
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 #
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
# Checking official latest version
|
|
latest=$(wget -q -T 10 -t 1 http://c.myvestacp.com/latest.txt?check_latest_version -O -)
|
|
|
|
# Starting update loop
|
|
for package in vesta vesta-nginx vesta-php; do
|
|
$BIN/v-update-sys-vesta "$package"
|
|
done
|
|
|
|
#----------------------------------------------------------#
|
|
# Vesta #
|
|
#----------------------------------------------------------#
|
|
|
|
exit
|