mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update UPDATE.sh
This commit is contained in:
parent
2ad64be148
commit
66f85b7ad0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user