mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update install.sh
This commit is contained in:
parent
67af05e683
commit
40b8b03004
@ -183,7 +183,7 @@ set_version_to_install(){
|
|||||||
response=$(curl -4 -s "https://hub.docker.com/v2/repositories/openpanel/openpanel-ui/tags")
|
response=$(curl -4 -s "https://hub.docker.com/v2/repositories/openpanel/openpanel-ui/tags")
|
||||||
PANEL_VERSION=$(echo $response | jq -r '.results[0].name')
|
PANEL_VERSION=$(echo $response | jq -r '.results[0].name')
|
||||||
if [[ ! "$PANEL_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
if [[ ! "$PANEL_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
PANEL_VERSION="1.2.0" # fallback if hub.docker.com unreachable!
|
PANEL_VERSION="1.2.2" # fallback if hub.docker.com unreachable!
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user