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
7e1e50a40c
commit
43375db989
@ -1,8 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Fallback method to update OpenPanel to the latest version directly from GitHub
|
# Fallback method to update OpenPanel to the latest version directly from GitHub
|
||||||
|
|
||||||
# STEP 1. get the latest OpenPanel version
|
# STEP 1. use user-provided version or check latest OpenPanel version
|
||||||
version=$(curl -s https://raw.githubusercontent.com/stefanpejcic/OpenPanel/refs/heads/main/version/latest)
|
if [[ "$1" == "--version" && -n "$2" ]]; then
|
||||||
|
version=$2
|
||||||
|
else
|
||||||
|
version=$(curl -s https://raw.githubusercontent.com/stefanpejcic/OpenPanel/refs/heads/main/version/latest)
|
||||||
|
fi
|
||||||
|
|
||||||
# STEP 2. 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
|
wget -O /tmp/openpanel-update-$version https://raw.githubusercontent.com/stefanpejcic/OpenPanel/refs/heads/main/version/$version/UPDATE.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user