init update

This commit is contained in:
qiaofeng1227 2023-05-26 15:32:11 +08:00
parent bf4e2f53db
commit 8bb0d7236a
3 changed files with 31 additions and 25 deletions

View File

@ -1,20 +0,0 @@
{
"PORTAINER": {
"AUTH_URL": "/portainer/api/auth",
"HOME_PAGE": "/portainer",
"USERNAME": "admin",
"PASSWORD": "websoft9@2023"
},
"NGINXPROXYMANAGER": {
"AUTH_URL": "/nginxproxymanager/api/tokens",
"HOME_PAGE": "/nginxproxymanager",
"USERNAME": "help@websoft9.com",
"PASSWORD": "changeme123",
"NICKNAME": "Admin"
},
"KOPIA": {
"HOME_PAGE": "/kopia",
"USERNAME": "admin",
"PASSWORD": "admin"
}
}

View File

@ -70,12 +70,19 @@ function get_os_version() {
os_type=$(get_os_type)
os_version=$(get_os_version)
CheckEnvironment(){
CheckUpdate(){
echo "---------------------------------- Update websoft9's appstore, it will take 1-3 minutes -------------------------------------------------------"
cd /tmp && rm -rf install.sh && wget https://websoft9.github.io/StackHub/install/version.json
old_version=$(cat /data/apps/stackhub/install/version.json)
latest_version=$(cat /tmp/version.json)
if [ "$old_version" = "$latest_version" ]
then
echo "------------------ Welcome to update websoft9's appstore, it will take 1-3 minutes -----------"
else
echo "Your appstore is latest, it not need to update..."
exit(1)
fi
echo os_type: $os_type
echo os_version: $os_version
if [ $(id -u) != "0" ]; then
echo "Please change to root or 'sudo su' to up system privileges, and reinstall the script again ."
exit 1
@ -335,7 +342,7 @@ cd /data/apps/stackhub/docker/w9nginxproxymanager && sudo docker compose down &
cd /data/apps/stackhub/docker/w9kopia && sudo docker compose down && sudo docker compose pull && sudo docker compose up -d
}
CheckEnvironment
CheckUpdate
UpdateDocker
UpdateCockpit
UpdatePlugins

19
install/version.json Normal file
View File

@ -0,0 +1,19 @@
{
"PORTAINER": {
"PORTAINER_PLUGIN_VERSION": "0.1.0",
"PORTAINER_IMAGE_VERSION": "2.18.3"
},
"NGINXPROXYMANAGER": {
"NGINXPROXYMANAGER_PLUGIN_VERSION": "0.1.0",
"NGINXPROXYMANAGER_IMAGE_VERSION": "2.10.3"
},
"KOPIA": {
"KOPIA_PLUGIN_VERSION": "0.1.0",
"KOPIA_IMAGE_VERSION": "0.13"
},
"APPSTORE": {
"APPMANAGE_PLUGIN_VERSION": "0.1.0",
"APPMANAGE_IMAGE_VERSION": "0.1.0",
"REDIS_IMAGE_VERSION": "7.0.11"
}
}