Update UPDATE.sh

This commit is contained in:
Stefan Pejcic 2024-12-03 12:16:56 +01:00 committed by GitHub
parent 2ad64be148
commit 66f85b7ad0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,13 +1,14 @@
#!/bin/bash
# fallback method to update OpenPanel to latest version directly from GitHub
# Fallback method to update OpenPanel to the latest version directly from GitHub
# get latest openpanel version
version=($curl https://raw.githubusercontent.com/stefanpejcic/OpenPanel/refs/heads/main/version/latest)
# STEP 1. get the latest OpenPanel version
version=$(curl -s https://raw.githubusercontent.com/stefanpejcic/OpenPanel/refs/heads/main/version/latest)
# download update script
# STEP 2. download update script
wget -O /tmp/openpanel-update-$version https://raw.githubusercontent.com/stefanpejcic/OpenPanel/refs/heads/main/version/$version/UPDATE.sh
# run it
# STEP 3. run the update script
chmod +x /tmp/openpanel-update-$version && bash /tmp/openpanel-update-$version
# STEP 4. clean up by removing the update script
rm -rf /tmp/openpanel-update-$version