Create v-update-myvesta

This commit is contained in:
myvesta 2023-02-05 16:11:15 +01:00 committed by GitHub
commit a10f82af30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

33
bin/v-update-myvesta Normal file
View 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