mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
Create v-update-myvesta
This commit is contained in:
parent
6d9c6d4734
commit
a10f82af30
1 changed files with 33 additions and 0 deletions
33
bin/v-update-myvesta
Normal file
33
bin/v-update-myvesta
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# info: Get the very latest build of myVesta
|
||||||
|
# options: NONE
|
||||||
|
#
|
||||||
|
# The function is downloading the very latest build of myVesta
|
||||||
|
|
||||||
|
#----------------------------------------------------------#
|
||||||
|
# Verifications #
|
||||||
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
|
whoami=$(whoami)
|
||||||
|
if [ "$whoami" != "root" ]; then
|
||||||
|
echo "You must be root to execute this script"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
#----------------------------------------------------------#
|
||||||
|
# Action #
|
||||||
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
|
rm /var/cache/apt/archives/vesta_* > /dev/null 2>&1
|
||||||
|
apt-get update
|
||||||
|
apt-get install --reinstall vesta
|
||||||
|
|
||||||
|
#----------------------------------------------------------#
|
||||||
|
# Vesta #
|
||||||
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
|
echo "=== myVesta updated ==="
|
||||||
|
|
||||||
|
log_event "$OK" "$ARGUMENTS"
|
||||||
|
|
||||||
|
exit
|
Loading…
Add table
Add a link
Reference in a new issue