1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-10-18 00:50:07 +00:00

fix(install): modernize Ubuntu and Debian installer script for 24.04 and Debian 12 compatibility

This commit is contained in:
catborise 2026-09-25 13:49:27 +03:00
parent 60565b05b3
commit 79c6bd4c62
2 changed files with 68 additions and 46 deletions

View file

@ -10,6 +10,15 @@ if [ "$(id -u)" != "0" ]; then
fi
fi
wget https://raw.githubusercontent.com/retspen/webvirtcloud/master/webvirtcloud.sh
chmod 744 webvirtcloud.sh
./webvirtcloud.sh 2>&1 | tee -a /var/log/webvirtcloud-install.log
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -f "$SCRIPT_DIR/webvirtcloud.sh" ]; then
INSTALLER="$SCRIPT_DIR/webvirtcloud.sh"
elif [ -f "./webvirtcloud.sh" ]; then
INSTALLER="./webvirtcloud.sh"
else
INSTALLER="./webvirtcloud.sh"
wget -O "$INSTALLER" "${WEBVIRTCLOUD_SCRIPT_URL:-https://raw.githubusercontent.com/catborise/webvirtcloud/master/webvirtcloud.sh}"
fi
chmod 744 "$INSTALLER"
"$INSTALLER" "$@" 2>&1 | tee -a /var/log/webvirtcloud-install.log