mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-02 17:08:38 +08:00
init update
This commit is contained in:
parent
bf4e2f53db
commit
8bb0d7236a
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
@ -70,12 +70,19 @@ function get_os_version() {
|
|||||||
os_type=$(get_os_type)
|
os_type=$(get_os_type)
|
||||||
os_version=$(get_os_version)
|
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
|
if [ $(id -u) != "0" ]; then
|
||||||
echo "Please change to root or 'sudo su' to up system privileges, and reinstall the script again ."
|
echo "Please change to root or 'sudo su' to up system privileges, and reinstall the script again ."
|
||||||
exit 1
|
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
|
cd /data/apps/stackhub/docker/w9kopia && sudo docker compose down && sudo docker compose pull && sudo docker compose up -d
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckEnvironment
|
CheckUpdate
|
||||||
UpdateDocker
|
UpdateDocker
|
||||||
UpdateCockpit
|
UpdateCockpit
|
||||||
UpdatePlugins
|
UpdatePlugins
|
||||||
|
19
install/version.json
Normal file
19
install/version.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user