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