Create UPDATE.sh

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

13
version/UPDATE.sh Normal file
View File

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