diff --git a/install/install.sh b/install/install.sh index 718c2bea..b16f7fb0 100644 --- a/install/install.sh +++ b/install/install.sh @@ -379,9 +379,9 @@ nginx_version=$(cat /data/apps/websoft9/version.json | jq .PLUGINS |jq .NGINX | wget $urls/plugin/nginx/nginx-$nginx_version.zip unzip nginx-$nginx_version.zip -# settings_version=$(cat /data/apps/websoft9/version.json | jq .PLUGINS |jq .SETTINGS | tr -d '"') -# wget https://w9artifact.blob.core.windows.net/release/websoft9/plugin/settings-$settings_version.zip -# unzip settings-$settings_version.zip +settings_version=$(cat /data/apps/websoft9/version.json | jq .PLUGINS |jq .SETTINGS | tr -d '"') +wget $urls/plugin/settings/settings-$settings_version.zip +unzip settings-$settings_version.zip rm -f *.zip # install library diff --git a/install/update.sh b/install/update.sh index c0a747b0..04746a7b 100644 --- a/install/update.sh +++ b/install/update.sh @@ -100,16 +100,16 @@ else echo "appstore is not need to update" fi - # if [ "$old_settings_version" \< "$new_settings_version" ]; then - # echo "settings plugin need to update" - # cd /usr/share/cockpit - # wget $urls/plugin/settings/settings-$new_settings_version.zip - # rm -rf settings - # unzip settings-$new_appstore_version.zip - # rm -f settings-$new_appstore_version.zip - # else - # echo "settings is not need to update" - # fi + if [ "$old_settings_version" \< "$new_settings_version" ]; then + echo "settings plugin need to update" + cd /usr/share/cockpit + wget $urls/plugin/settings/settings-$new_settings_version.zip + rm -rf settings + unzip settings-$new_appstore_version.zip + rm -f settings-$new_appstore_version.zip + else + echo "settings is not need to update" + fi if [ "$old_myapps_version" \< "$new_myapps_version" ]; then echo "start to update myapps..."