diff --git a/ct/2fauth.sh b/ct/2fauth.sh index b136499e6..9dc9fc541 100644 --- a/ct/2fauth.sh +++ b/ct/2fauth.sh @@ -20,79 +20,79 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources + header_info + check_container_storage + check_container_resources - # Check if installation is present | -f for file, -d for folder - if [[ ! -d "/opt/2fauth" ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - # Crawling the new version and checking whether an update is required - RELEASE=$(curl -fsSL https://api.github.com/repos/Bubka/2FAuth/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - if [[ "${RELEASE}" != "$(cat /opt/2fauth_version.txt)" ]] || [[ ! -f /opt/2fauth_version.txt ]]; then - msg_info "Updating $APP to ${RELEASE}" - - $STD apt-get update - $STD apt-get -y upgrade - - # Creating Backup - msg_info "Creating Backup" - mv "/opt/2fauth" "/opt/2fauth-backup" - if ! dpkg -l | grep -q 'php8.3'; then - cp /etc/nginx/conf.d/2fauth.conf /etc/nginx/conf.d/2fauth.conf.bak - fi - msg_ok "Backup Created" - - # Upgrade PHP - if ! dpkg -l | grep -q 'php8.3'; then - $STD apt-get install -y \ - lsb-release \ - gpg - curl -fsSL https://packages.sury.org/php/apt.gpg | gpg --dearmor -o /usr/share/keyrings/deb.sury.org-php.gpg - echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list - $STD apt-get update - $STD apt-get install -y php8.3-{bcmath,common,ctype,curl,fileinfo,fpm,gd,mbstring,mysql,xml,cli,intl} - sed -i 's/php8.2/php8.3/g' /etc/nginx/conf.d/2fauth.conf - fi - - # Execute Update - curl -fsSL -o "${RELEASE}.zip" "https://github.com/Bubka/2FAuth/archive/refs/tags/${RELEASE}.zip" - unzip -q "${RELEASE}.zip" - mv "2FAuth-${RELEASE//v/}/" "/opt/2fauth" - mv "/opt/2fauth-backup/.env" "/opt/2fauth/.env" - mv "/opt/2fauth-backup/storage" "/opt/2fauth/storage" - cd "/opt/2fauth" || return - - chown -R www-data: "/opt/2fauth" - chmod -R 755 "/opt/2fauth" - - export COMPOSER_ALLOW_SUPERUSER=1 - $STD composer install --no-dev --prefer-source - - php artisan 2fauth:install - - $STD systemctl restart nginx - - # Cleaning up - msg_info "Cleaning Up" - rm -rf "v${RELEASE}.zip" - if dpkg -l | grep -q 'php8.2'; then - $STD apt-get remove --purge -y php8.2* - fi - $STD apt-get -y autoremove - $STD apt-get -y autoclean - msg_ok "Cleanup Completed" - - # Last Action - echo "${RELEASE}" >/opt/2fauth_version.txt - msg_ok "Updated $APP to ${RELEASE}" - else - msg_ok "No update required. ${APP} is already at ${RELEASE}" - fi + # Check if installation is present | -f for file, -d for folder + if [[ ! -d "/opt/2fauth" ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + + # Crawling the new version and checking whether an update is required + RELEASE=$(curl -fsSL https://api.github.com/repos/Bubka/2FAuth/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') + if [[ "${RELEASE}" != "$(cat /opt/2fauth_version.txt)" ]] || [[ ! -f /opt/2fauth_version.txt ]]; then + msg_info "Updating $APP to ${RELEASE}" + + $STD apt-get update + $STD apt-get -y upgrade + + # Creating Backup + msg_info "Creating Backup" + mv "/opt/2fauth" "/opt/2fauth-backup" + if ! dpkg -l | grep -q 'php8.3'; then + cp /etc/nginx/conf.d/2fauth.conf /etc/nginx/conf.d/2fauth.conf.bak + fi + msg_ok "Backup Created" + + # Upgrade PHP + if ! dpkg -l | grep -q 'php8.3'; then + $STD apt-get install -y \ + lsb-release \ + gpg + curl -fsSL https://packages.sury.org/php/apt.gpg | gpg --dearmor -o /usr/share/keyrings/deb.sury.org-php.gpg + echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" >/etc/apt/sources.list.d/php.list + $STD apt-get update + $STD apt-get install -y php8.3-{bcmath,common,ctype,curl,fileinfo,fpm,gd,mbstring,mysql,xml,cli,intl} + sed -i 's/php8.2/php8.3/g' /etc/nginx/conf.d/2fauth.conf + fi + + # Execute Update + curl -fsSL -o "${RELEASE}.zip" "https://github.com/Bubka/2FAuth/archive/refs/tags/${RELEASE}.zip" + $STD unzip "${RELEASE}.zip" + mv "2FAuth-${RELEASE//v/}/" "/opt/2fauth" + mv "/opt/2fauth-backup/.env" "/opt/2fauth/.env" + mv "/opt/2fauth-backup/storage" "/opt/2fauth/storage" + cd "/opt/2fauth" || return + + chown -R www-data: "/opt/2fauth" + chmod -R 755 "/opt/2fauth" + + export COMPOSER_ALLOW_SUPERUSER=1 + $STD composer install --no-dev --prefer-source + + php artisan 2fauth:install + + $STD systemctl restart nginx + + # Cleaning up + msg_info "Cleaning Up" + rm -rf "v${RELEASE}.zip" + if dpkg -l | grep -q 'php8.2'; then + $STD apt-get remove --purge -y php8.2* + fi + $STD apt-get -y autoremove + $STD apt-get -y autoclean + msg_ok "Cleanup Completed" + + # Last Action + echo "${RELEASE}" >/opt/2fauth_version.txt + msg_ok "Updated $APP to ${RELEASE}" + else + msg_ok "No update required. ${APP} is already at ${RELEASE}" + fi + exit } start @@ -102,4 +102,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:80${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:80${CL}" diff --git a/ct/adventurelog.sh b/ct/adventurelog.sh index 51eeb0b4f..966afb2e4 100644 --- a/ct/adventurelog.sh +++ b/ct/adventurelog.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" mv /opt/adventurelog/ /opt/adventurelog-backup/ curl -fsSL -o /opt/v${RELEASE}.zip "https://github.com/seanmorley15/AdventureLog/archive/refs/tags/v${RELEASE}.zip" - unzip -q /opt/v${RELEASE}.zip -d /opt/ + $STD unzip /opt/v${RELEASE}.zip -d /opt/ mv /opt/AdventureLog-${RELEASE} /opt/adventurelog mv /opt/adventurelog-backup/backend/server/.env /opt/adventurelog/backend/server/.env @@ -78,4 +78,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" diff --git a/ct/alpine-it-tools.sh b/ct/alpine-it-tools.sh index 8d7690945..17df5d144 100644 --- a/ct/alpine-it-tools.sh +++ b/ct/alpine-it-tools.sh @@ -36,7 +36,7 @@ function update_script() { curl -fsSL -o it-tools.zip "$DOWNLOAD_URL" mkdir -p /usr/share/nginx/html rm -rf /usr/share/nginx/html/* - unzip -q it-tools.zip -d /tmp/it-tools + $STD unzip it-tools.zip -d /tmp/it-tools cp -r /tmp/it-tools/dist/* /usr/share/nginx/html rm -rf /tmp/it-tools rm -f it-tools.zip diff --git a/ct/baikal.sh b/ct/baikal.sh index 790efb45e..5d71b1a66 100644 --- a/ct/baikal.sh +++ b/ct/baikal.sh @@ -37,7 +37,7 @@ function update_script() { cd /opt curl -fsSL "https://github.com/sabre-io/baikal/releases/download/${RELEASE}/baikal-${RELEASE}.zip" -o $(basename "https://github.com/sabre-io/baikal/releases/download/${RELEASE}/baikal-${RELEASE}.zip") mv /opt/baikal /opt/baikal-backup - unzip -o -q "baikal-${RELEASE}.zip" + $STD unzip -o "baikal-${RELEASE}.zip" cp -r /opt/baikal-backup/config/baikal.yaml /opt/baikal/config/ cp -r /opt/baikal-backup/Specific/ /opt/baikal/ chown -R www-data:www-data /opt/baikal/ diff --git a/ct/barcode-buddy.sh b/ct/barcode-buddy.sh index 3f4216dff..d683db808 100644 --- a/ct/barcode-buddy.sh +++ b/ct/barcode-buddy.sh @@ -38,7 +38,7 @@ function update_script() { cd /opt mv /opt/barcodebuddy/ /opt/barcodebuddy-backup curl -fsSL "https://github.com/Forceu/barcodebuddy/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/Forceu/barcodebuddy/archive/refs/tags/v${RELEASE}.zip") - unzip -q "v${RELEASE}.zip" + $STD unzip "v${RELEASE}.zip" mv "/opt/barcodebuddy-${RELEASE}" /opt/barcodebuddy cp -r /opt/barcodebuddy-backup/data/. /opt/barcodebuddy/data chown -R www-data:www-data /opt/barcodebuddy/data diff --git a/ct/bookstack.sh b/ct/bookstack.sh index 5b2ff6735..5a7fda1f2 100644 --- a/ct/bookstack.sh +++ b/ct/bookstack.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" mv /opt/bookstack /opt/bookstack-backup curl -fsSL "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o "/opt/BookStack-${RELEASE}.zip" - unzip -q "/opt/BookStack-${RELEASE}.zip" -d /opt + $STD unzip "/opt/BookStack-${RELEASE}.zip" -d /opt mv "/opt/BookStack-${RELEASE}" /opt/bookstack cp /opt/bookstack-backup/.env /opt/bookstack/.env [[ -d /opt/bookstack-backup/public/uploads ]] && cp -a /opt/bookstack-backup/public/uploads/. /opt/bookstack/public/uploads/ diff --git a/ct/commafeed.sh b/ct/commafeed.sh index 07eb05a8e..37cc45d14 100644 --- a/ct/commafeed.sh +++ b/ct/commafeed.sh @@ -42,7 +42,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" curl -fsSL "https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip" -o $(basename "https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip") - unzip -q commafeed-"${RELEASE}"-h2-jvm.zip + $STD unzip commafeed-"${RELEASE}"-h2-jvm.zip rsync -a --exclude 'data/' commafeed-"${RELEASE}"-h2/ /opt/commafeed/ rm -rf commafeed-"${RELEASE}"-h2 commafeed-"${RELEASE}"-h2-jvm.zip echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/crafty-controller.sh b/ct/crafty-controller.sh index 574791a1b..dfa6d413f 100644 --- a/ct/crafty-controller.sh +++ b/ct/crafty-controller.sh @@ -46,7 +46,7 @@ function update_script() { msg_info "Updating Crafty-Controller to v${RELEASE}" curl -fsSL "https://gitlab.com/crafty-controller/crafty-4/-/archive/v${RELEASE}/crafty-4-v${RELEASE}.zip" -o $(basename "https://gitlab.com/crafty-controller/crafty-4/-/archive/v${RELEASE}/crafty-4-v${RELEASE}.zip") - unzip -q crafty-4-v${RELEASE}.zip + $STD unzip crafty-4-v${RELEASE}.zip cp -a crafty-4-v${RELEASE}/. /opt/crafty-controller/crafty/crafty-4/ rm -rf crafty-4-v${RELEASE} cd /opt/crafty-controller/crafty/crafty-4 diff --git a/ct/documenso.sh b/ct/documenso.sh index 2a45e8149..2d0b1bc5f 100644 --- a/ct/documenso.sh +++ b/ct/documenso.sh @@ -38,7 +38,7 @@ function update_script() { rm -rf /opt/documenso cd /opt curl -fsSL "https://github.com/documenso/documenso/archive/refs/tags/v${RELEASE}.zip" -o v${RELEASE}.zip - unzip -q v${RELEASE}.zip + $STD unzip v${RELEASE}.zip mv documenso-${RELEASE} /opt/documenso cd /opt/documenso mv /opt/.env /opt/documenso/.env diff --git a/ct/fileflows.sh b/ct/fileflows.sh index 78ff7b429..714d93e8e 100644 --- a/ct/fileflows.sh +++ b/ct/fileflows.sh @@ -47,7 +47,7 @@ function update_script() { msg_info "Updating $APP to latest version" temp_file=$(mktemp) curl -fsSL https://fileflows.com/downloads/zip -o "$temp_file" - unzip -oq -d /opt/fileflows "$temp_file" + $STD unzip -o -d /opt/fileflows "$temp_file" msg_ok "Updated $APP to latest version" msg_info "Starting $APP" diff --git a/ct/fluid-calendar.sh b/ct/fluid-calendar.sh index 5e170ca3e..e43e28a17 100644 --- a/ct/fluid-calendar.sh +++ b/ct/fluid-calendar.sh @@ -39,8 +39,8 @@ function update_script() { cp /opt/fluid-calendar/.env /opt/fluid.env rm -rf /opt/fluid-calendar tmp_file=$(mktemp) -curl -fsSL "https://github.com/dotnetfactory/fluid-calendar/archive/refs/tags/v${RELEASE}.zip" -o "$tmp_file" - unzip -q $tmp_file + curl -fsSL "https://github.com/dotnetfactory/fluid-calendar/archive/refs/tags/v${RELEASE}.zip" -o "$tmp_file" + $STD unzip $tmp_file mv ${APP}-${RELEASE}/ /opt/fluid-calendar mv /opt/fluid.env /opt/fluid-calendar/.env cd /opt/fluid-calendar @@ -74,4 +74,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" diff --git a/ct/gotify.sh b/ct/gotify.sh index 0c1c3d08e..a4b738999 100644 --- a/ct/gotify.sh +++ b/ct/gotify.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" cd /opt/gotify curl -fsSL "https://github.com/gotify/server/releases/download/v${RELEASE}/gotify-linux-amd64.zip" -o $(basename "https://github.com/gotify/server/releases/download/v${RELEASE}/gotify-linux-amd64.zip") - unzip -oq gotify-linux-amd64.zip + $STD unzip -o gotify-linux-amd64.zip rm -rf gotify-linux-amd64.zip chmod +x gotify-linux-amd64 echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/grist.sh b/ct/grist.sh index e87848814..0e395a32b 100644 --- a/ct/grist.sh +++ b/ct/grist.sh @@ -39,7 +39,7 @@ function update_script() { rm -rf grist_bak mv grist grist_bak curl -fsSL "https://github.com/gristlabs/grist-core/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/gristlabs/grist-core/archive/refs/tags/v${RELEASE}.zip") - unzip -q v$RELEASE.zip + $STD unzip v$RELEASE.zip mv grist-core-${RELEASE} grist mkdir -p grist/docs diff --git a/ct/hoarder.sh b/ct/hoarder.sh index 0695e1c87..a9751083e 100644 --- a/ct/hoarder.sh +++ b/ct/hoarder.sh @@ -47,7 +47,7 @@ function update_script() { fi rm -rf /opt/hoarder curl -fsSL "https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip" -o "v${RELEASE}.zip" - unzip -q v"${RELEASE}".zip + $STD unzip v"${RELEASE}".zip mv karakeep-"${RELEASE}" /opt/hoarder cd /opt/hoarder/apps/web $STD pnpm install --frozen-lockfile diff --git a/ct/homeassistant-core.sh b/ct/homeassistant-core.sh index 339f7fa1c..33a1d1ea2 100644 --- a/ct/homeassistant-core.sh +++ b/ct/homeassistant-core.sh @@ -104,7 +104,6 @@ function update_script() { if [ "$UPD" == "2" ]; then msg_info "Installing Home Assistant Community Store (HACS)" $STD apt update - $STD apt install -y unzip cd /root/.homeassistant $STD bash <(curl -fsSL https://get.hacs.xyz) msg_ok "Installed Home Assistant Community Store (HACS)" diff --git a/ct/homeassistant.sh b/ct/homeassistant.sh index 3c102d989..6201915b9 100644 --- a/ct/homeassistant.sh +++ b/ct/homeassistant.sh @@ -62,7 +62,6 @@ function update_script() { if [ "$UPD" == "3" ]; then msg_info "Installing Home Assistant Community Store (HACS)" $STD apt update - $STD apt install unzip cd /var/lib/docker/volumes/hass_config/_data $STD bash <(curl -fsSL https://get.hacs.xyz) msg_ok "Installed Home Assistant Community Store (HACS)" diff --git a/ct/karakeep.sh b/ct/karakeep.sh index c358f30e4..4ec1f7f2a 100644 --- a/ct/karakeep.sh +++ b/ct/karakeep.sh @@ -50,7 +50,7 @@ function update_script() { fi rm -rf /opt/karakeep curl -fsSL "https://github.com/karakeep-app/karakeep/archive/refs/tags/v${RELEASE}.zip" -o "v${RELEASE}.zip" - unzip -q "v${RELEASE}.zip" + $STD unzip "v${RELEASE}.zip" mv karakeep-"${RELEASE}" /opt/karakeep cd /opt/karakeep/apps/web $STD pnpm install --frozen-lockfile diff --git a/ct/kimai.sh b/ct/kimai.sh index 41ec61eee..60c3a8afe 100644 --- a/ct/kimai.sh +++ b/ct/kimai.sh @@ -64,7 +64,7 @@ function update_script() { trap "echo Unable to download release file for version ${RELEASE}; try again later" ERR set -e curl -fsSL "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip") - unzip -q "${RELEASE}".zip + $STD unzip "${RELEASE}".zip set +e trap - ERR rm -rf /opt/kimai diff --git a/ct/koillection.sh b/ct/koillection.sh index 4cc1f082f..d77df8ae5 100644 --- a/ct/koillection.sh +++ b/ct/koillection.sh @@ -37,7 +37,7 @@ function update_script() { cd /opt mv /opt/koillection/ /opt/koillection-backup curl -fsSL "https://github.com/benjaminjonard/koillection/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/benjaminjonard/koillection/archive/refs/tags/${RELEASE}.zip") - unzip -q "${RELEASE}.zip" + $STD unzip "${RELEASE}.zip" mv "/opt/koillection-${RELEASE}" /opt/koillection cd /opt/koillection cp -r /opt/koillection-backup/.env.local /opt/koillection diff --git a/ct/lubelogger.sh b/ct/lubelogger.sh index da5d9e663..d4f0cf4d9 100644 --- a/ct/lubelogger.sh +++ b/ct/lubelogger.sh @@ -50,7 +50,7 @@ function update_script() { [[ -e /opt/lubelogger/wwwroot/temp ]] && cp -r /opt/lubelogger/wwwroot/temp /tmp/lubeloggerData/data/ [[ -e /opt/lubelogger/log ]] && cp -r /opt/lubelogger/log /tmp/lubeloggerData/ rm -rf /opt/lubelogger - unzip -qq LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip -d lubelogger + $STD unzip LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip -d lubelogger chmod 700 /opt/lubelogger/CarCareTracker cp -rf /tmp/lubeloggerData/* /opt/lubelogger/ echo "${RELEASE}" >"/opt/${APP}_version.txt" diff --git a/ct/meilisearch.sh b/ct/meilisearch.sh index 3cc5b2c52..bb7096a37 100644 --- a/ct/meilisearch.sh +++ b/ct/meilisearch.sh @@ -69,7 +69,7 @@ function update_script() { rm -rf /opt/meilisearch-ui mkdir -p /opt/meilisearch-ui curl -fsSL "https://github.com/riccox/meilisearch-ui/archive/refs/tags/${RELEASE_UI}.zip" -o $tmp_file - unzip -q "$tmp_file" -d "$tmp_dir" + $STD unzip "$tmp_file" -d "$tmp_dir" mv "$tmp_dir"/*/* /opt/meilisearch-ui/ cd /opt/meilisearch-ui sed -i 's|const hash = execSync("git rev-parse HEAD").toString().trim();|const hash = "unknown";|' /opt/meilisearch-ui/vite.config.ts diff --git a/ct/myspeed.sh b/ct/myspeed.sh index 3f068716d..965c7f74d 100644 --- a/ct/myspeed.sh +++ b/ct/myspeed.sh @@ -39,7 +39,7 @@ function update_script() { rm -rf myspeed_bak mv myspeed myspeed_bak curl -fsSL "https://github.com/gnmyt/myspeed/releases/download/v$RELEASE/MySpeed-$RELEASE.zip" -o $(basename "https://github.com/gnmyt/myspeed/releases/download/v$RELEASE/MySpeed-$RELEASE.zip") - unzip -q MySpeed-$RELEASE.zip -d myspeed + $STD unzip MySpeed-$RELEASE.zip -d myspeed cd myspeed $STD npm install echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/netbox.sh b/ct/netbox.sh index 6b1c40fff..e5dd28d8e 100644 --- a/ct/netbox.sh +++ b/ct/netbox.sh @@ -39,7 +39,7 @@ function update_script() { mv /opt/netbox/ /opt/netbox-backup cd /opt curl -fsSL "https://github.com/netbox-community/netbox/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/netbox-community/netbox/archive/refs/tags/v${RELEASE}.zip") - unzip -q "v${RELEASE}.zip" + $STD unzip "v${RELEASE}.zip" mv /opt/netbox-${RELEASE}/ /opt/netbox/ cp -r /opt/netbox-backup/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/ diff --git a/ct/paperless-ai.sh b/ct/paperless-ai.sh index 59fe3c1f0..ac9fe430b 100644 --- a/ct/paperless-ai.sh +++ b/ct/paperless-ai.sh @@ -40,7 +40,7 @@ function update_script() { cd /opt mv /opt/paperless-ai /opt/paperless-ai_bak curl -fsSL "https://github.com/clusterzx/paperless-ai/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/clusterzx/paperless-ai/archive/refs/tags/v${RELEASE}.zip") - unzip -q v${RELEASE}.zip + $STD unzip v${RELEASE}.zip mv paperless-ai-${RELEASE} /opt/paperless-ai mkdir -p /opt/paperless-ai/data cp -a /opt/paperless-ai_bak/data/. /opt/paperless-ai/data/ diff --git a/ct/part-db.sh b/ct/part-db.sh index 3087802e0..6909cd3f1 100644 --- a/ct/part-db.sh +++ b/ct/part-db.sh @@ -37,7 +37,7 @@ function update_script() { cd /opt mv /opt/partdb/ /opt/partdb-backup curl -fsSL "https://github.com/Part-DB/Part-DB-server/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/Part-DB/Part-DB-server/archive/refs/tags/v${RELEASE}.zip") - unzip -q "v${RELEASE}.zip" + $STD unzip "v${RELEASE}.zip" mv /opt/Part-DB-server-${RELEASE}/ /opt/partdb cd /opt/partdb/ diff --git a/ct/petio.sh b/ct/petio.sh index 63aeb38c6..22c8e93a5 100644 --- a/ct/petio.sh +++ b/ct/petio.sh @@ -19,20 +19,20 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /opt/Petio ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_info "Updating $APP" - systemctl stop petio.service - curl -fsSL https://petio.tv/releases/latest -o petio-latest.zip - unzip petio-latest.zip -d /opt/Petio - systemctl start petio.service - msg_ok "Updated $APP" + header_info + check_container_storage + check_container_resources + if [[ ! -d /opt/Petio ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + msg_info "Updating $APP" + systemctl stop petio.service + curl -fsSL https://petio.tv/releases/latest -o petio-latest.zip + $STD unzip petio-latest.zip -d /opt/Petio + systemctl start petio.service + msg_ok "Updated $APP" + exit } start diff --git a/ct/pf2etools.sh b/ct/pf2etools.sh index e39b71eb2..6eca7888d 100644 --- a/ct/pf2etools.sh +++ b/ct/pf2etools.sh @@ -39,7 +39,7 @@ function update_script() { msg_info "Updating ${APP}" cd /opt curl -fsSL "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip") - unzip -q ${RELEASE}.zip + $STD unzip ${RELEASE}.zip rm -rf "/opt/${APP}" mv ${APP}-${RELEASE:1} /opt/${APP} cd /opt/Pf2eTools diff --git a/ct/phpipam.sh b/ct/phpipam.sh index f60b75671..d5211799a 100644 --- a/ct/phpipam.sh +++ b/ct/phpipam.sh @@ -37,7 +37,7 @@ function update_script() { cd /opt mv /opt/phpipam/ /opt/phpipam-backup curl -fsSL "https://github.com/phpipam/phpipam/releases/download/v${RELEASE}/phpipam-v${RELEASE}.zip" -o $(basename "https://github.com/phpipam/phpipam/releases/download/v${RELEASE}/phpipam-v${RELEASE}.zip") - unzip -q "phpipam-v${RELEASE}.zip" + $STD unzip "phpipam-v${RELEASE}.zip" cp /opt/phpipam-backup/config.php /opt/phpipam echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" diff --git a/ct/pingvin.sh b/ct/pingvin.sh index ac662259b..46eb93f10 100644 --- a/ct/pingvin.sh +++ b/ct/pingvin.sh @@ -38,7 +38,7 @@ function update_script() { msg_info "Updating Pingvin Share to v${RELEASE}" cd /opt curl -fsSL "https://github.com/stonith404/pingvin-share/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/stonith404/pingvin-share/archive/refs/tags/v${RELEASE}.zip") - unzip -q v${RELEASE}.zip + $STD unzip v${RELEASE}.zip cp -rf pingvin-share-${RELEASE}/* /opt/pingvin-share cd /opt/pingvin-share cd backend diff --git a/ct/podman-homeassistant.sh b/ct/podman-homeassistant.sh index 65aaf14a1..ceb9f2307 100644 --- a/ct/podman-homeassistant.sh +++ b/ct/podman-homeassistant.sh @@ -58,7 +58,6 @@ function update_script() { if [ "$UPD" == "2" ]; then msg_info "Installing Home Assistant Community Store (HACS)" $STD apt update - $STD apt install unzip cd /var/lib/containers/storage/volumes/hass_config/_data $STD bash <(curl -fsSL https://get.hacs.xyz) msg_ok "Installed Home Assistant Community Store (HACS)" @@ -110,4 +109,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8123${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8123${CL}" diff --git a/ct/privatebin.sh b/ct/privatebin.sh index 7f2438366..226aa5df7 100644 --- a/ct/privatebin.sh +++ b/ct/privatebin.sh @@ -33,7 +33,7 @@ function update_script() { echo "${RELEASE}" >/opt/${APP}_version.txt cp -f /opt/privatebin/cfg/conf.php /tmp/privatebin_conf.bak curl -fsSL "https://github.com/PrivateBin/PrivateBin/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/PrivateBin/PrivateBin/archive/refs/tags/${RELEASE}.zip") - unzip -q ${RELEASE}.zip + $STD unzip ${RELEASE}.zip rm -rf /opt/privatebin/* mv PrivateBin-${RELEASE}/* /opt/privatebin/ mv /tmp/privatebin_conf.bak /opt/privatebin/cfg/conf.php diff --git a/ct/projectsend.sh b/ct/projectsend.sh index b6c77d73e..060512453 100644 --- a/ct/projectsend.sh +++ b/ct/projectsend.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt curl -fsSL "https://github.com/projectsend/projectsend/releases/download/r${RELEASE}/projectsend-r${RELEASE}.zip" -o $(basename "https://github.com/projectsend/projectsend/releases/download/r${RELEASE}/projectsend-r${RELEASE}.zip") - unzip -o -q "projectsend-r${RELEASE}.zip" -d projectsend + $STD unzip -o "projectsend-r${RELEASE}.zip" -d projectsend chown -R www-data:www-data /opt/projectsend chmod -R 775 /opt/projectsend echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/rdtclient.sh b/ct/rdtclient.sh index 29bcd273a..2bcd2a0cc 100755 --- a/ct/rdtclient.sh +++ b/ct/rdtclient.sh @@ -20,38 +20,38 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /opt/rdtc/ ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_info "Stopping ${APP}" - systemctl stop rdtc - msg_ok "Stopped ${APP}" - - msg_info "Updating ${APP}" - if dpkg-query -W dotnet-sdk-8.0 >/dev/null 2>&1; then - $STD apt-get remove --purge -y dotnet-sdk-8.0 - $STD apt-get install -y dotnet-sdk-9.0 - fi - mkdir -p rdtc-backup - cp -R /opt/rdtc/appsettings.json rdtc-backup/ - curl -fsSL "https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip" -o $(basename "https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip") - unzip -oqq RealDebridClient.zip -d /opt/rdtc - cp -R rdtc-backup/appsettings.json /opt/rdtc/ - msg_ok "Updated ${APP}" - - msg_info "Starting ${APP}" - systemctl start rdtc - msg_ok "Started ${APP}" - - msg_info "Cleaning Up" - rm -rf rdtc-backup RealDebridClient.zip - msg_ok "Cleaned" - msg_ok "Updated Successfully" + header_info + check_container_storage + check_container_resources + if [[ ! -d /opt/rdtc/ ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + msg_info "Stopping ${APP}" + systemctl stop rdtc + msg_ok "Stopped ${APP}" + + msg_info "Updating ${APP}" + if dpkg-query -W dotnet-sdk-8.0 >/dev/null 2>&1; then + $STD apt-get remove --purge -y dotnet-sdk-8.0 + $STD apt-get install -y dotnet-sdk-9.0 + fi + mkdir -p rdtc-backup + cp -R /opt/rdtc/appsettings.json rdtc-backup/ + curl -fsSL "https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip" -o $(basename "https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip") + $STD unzip -o RealDebridClient.zip -d /opt/rdtc + cp -R rdtc-backup/appsettings.json /opt/rdtc/ + msg_ok "Updated ${APP}" + + msg_info "Starting ${APP}" + systemctl start rdtc + msg_ok "Started ${APP}" + + msg_info "Cleaning Up" + rm -rf rdtc-backup RealDebridClient.zip + msg_ok "Cleaned" + msg_ok "Updated Successfully" + exit } start diff --git a/ct/reactive-resume.sh b/ct/reactive-resume.sh index 4a81e9d16..a974326fe 100644 --- a/ct/reactive-resume.sh +++ b/ct/reactive-resume.sh @@ -39,7 +39,7 @@ function update_script() { res_tmp=$(mktemp) rm -rf /opt/${APP} curl -fsSL "https://github.com/AmruthPillai/Reactive-Resume/archive/refs/tags/v${RELEASE}.zip" -O $res_tmp - unzip -q $res_tmp + $STD unzip $res_tmp mv ${APP}-${RELEASE}/ /opt/${APP} cd /opt/${APP} export PUPPETEER_SKIP_DOWNLOAD="true" @@ -66,7 +66,7 @@ function update_script() { brwsr_tmp=$(mktemp) TAG=$(curl -fsSL https://api.github.com/repos/browserless/browserless/tags?per_page=1 | grep "name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL https://github.com/browserless/browserless/archive/refs/tags/v${TAG}.zip -O $brwsr_tmp - unzip -q $brwsr_tmp + $STD unzip $brwsr_tmp mv browserless-${TAG}/ /opt/browserless cd /opt/browserless $STD npm install diff --git a/ct/silverbullet.sh b/ct/silverbullet.sh index f9f0f5d07..d6a3f3876 100644 --- a/ct/silverbullet.sh +++ b/ct/silverbullet.sh @@ -34,7 +34,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" curl -fsSL "https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip" -o $(basename "https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip") - unzip -q silverbullet-server-linux-x86_64.zip + $STD unzip silverbullet-server-linux-x86_64.zip mv silverbullet /opt/silverbullet/bin/ chmod +x /opt/silverbullet/bin/silverbullet echo "${RELEASE}" >/opt/silverbullet/${APP}_version.txt diff --git a/ct/slskd.sh b/ct/slskd.sh index c9f357a93..3b8c305bc 100644 --- a/ct/slskd.sh +++ b/ct/slskd.sh @@ -38,7 +38,7 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}" tmp_file=$(mktemp) curl -fsSL "https://github.com/slskd/slskd/releases/download/${RELEASE}/slskd-${RELEASE}-linux-x64.zip" -o $tmp_file - unzip -q -oj $tmp_file slskd -d /opt/${APP} + $STD unzip -oj $tmp_file slskd -d /opt/${APP} echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" @@ -55,7 +55,7 @@ function update_script() { cd /tmp rm -rf /opt/soularr curl -fsSL -o main.zip https://github.com/mrusse/soularr/archive/refs/heads/main.zip - unzip -q main.zip + $STD unzip main.zip mv soularr-main /opt/soularr cd /opt/soularr $STD pip install -r requirements.txt diff --git a/ct/spoolman.sh b/ct/spoolman.sh index 61392429a..71ca77777 100644 --- a/ct/spoolman.sh +++ b/ct/spoolman.sh @@ -39,7 +39,7 @@ function update_script() { rm -rf spoolman_bak mv spoolman spoolman_bak curl -fsSL "https://github.com/Donkie/Spoolman/releases/download/${RELEASE}/spoolman.zip" -o $(basename "https://github.com/Donkie/Spoolman/releases/download/${RELEASE}/spoolman.zip") - unzip -q spoolman.zip -d spoolman + $STD unzip spoolman.zip -d spoolman cd spoolman $STD pip3 install -r requirements.txt curl -fsSL "https://raw.githubusercontent.com/Donkie/Spoolman/master/.env.example" -o ".env" diff --git a/ct/teddycloud.sh b/ct/teddycloud.sh index 0e02795ef..eed14c2e1 100644 --- a/ct/teddycloud.sh +++ b/ct/teddycloud.sh @@ -37,7 +37,7 @@ function update_script() { cd /opt mv /opt/teddycloud /opt/teddycloud_bak curl -fsSL "https://github.com/toniebox-reverse-engineering/teddycloud/releases/download/${RELEASE}/teddycloud.amd64.release_v${VERSION}.zip" -o $(basename "https://github.com/toniebox-reverse-engineering/teddycloud/releases/download/${RELEASE}/teddycloud.amd64.release_v${VERSION}.zip") - unzip -q -d /opt/teddycloud teddycloud.amd64.release_v${VERSION}.zip + $STD unzip -d /opt/teddycloud teddycloud.amd64.release_v${VERSION}.zip cp -R /opt/teddycloud_bak/certs /opt/teddycloud_bak/config /opt/teddycloud_bak/data /opt/teddycloud echo "${VERSION}" >"/opt/${APP}_version.txt" msg_ok "Updated ${APP} to v${VERSION}" diff --git a/ct/tianji.sh b/ct/tianji.sh index 319a3b606..ed89d07d2 100644 --- a/ct/tianji.sh +++ b/ct/tianji.sh @@ -50,7 +50,7 @@ function update_script() { cp /opt/tianji/src/server/.env /opt/.env mv /opt/tianji /opt/tianji_bak curl -fsSL "https://github.com/msgbyte/tianji/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/msgbyte/tianji/archive/refs/tags/v${RELEASE}.zip") - unzip -q v${RELEASE}.zip + $STD unzip v${RELEASE}.zip mv tianji-${RELEASE} /opt/tianji cd tianji export NODE_OPTIONS="--max_old_space_size=4096" diff --git a/ct/wallos.sh b/ct/wallos.sh index 495ea79bc..2b5487dee 100644 --- a/ct/wallos.sh +++ b/ct/wallos.sh @@ -35,7 +35,7 @@ function update_script() { mkdir -p /opt/logos mv /opt/wallos/db/wallos.db /opt/wallos.db mv /opt/wallos/images/uploads/logos /opt/logos/ - unzip -q v${RELEASE}.zip + $STD unzip v${RELEASE}.zip rm -rf /opt/wallos mv Wallos-${RELEASE} /opt/wallos rm -rf /opt/wallos/db/wallos.empty.db diff --git a/ct/wastebin.sh b/ct/wastebin.sh index 313a6de2d..3cfb6644d 100644 --- a/ct/wastebin.sh +++ b/ct/wastebin.sh @@ -20,28 +20,28 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /opt/wastebin ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - # Dirty-Fix 03/2025 for missing APP_version.txt on old installations, set to pre-latest release - msg_info "Running Migration" - if [[ ! -f /opt/${APP}_version.txt ]]; then - echo "2.7.1" >/opt/${APP}_version.txt - mkdir -p /opt/wastebin-data - cat </opt/wastebin-data/.env + header_info + check_container_storage + check_container_resources + if [[ ! -d /opt/wastebin ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') + # Dirty-Fix 03/2025 for missing APP_version.txt on old installations, set to pre-latest release + msg_info "Running Migration" + if [[ ! -f /opt/${APP}_version.txt ]]; then + echo "2.7.1" >/opt/${APP}_version.txt + mkdir -p /opt/wastebin-data + cat </opt/wastebin-data/.env WASTEBIN_DATABASE_PATH=/opt/wastebin-data/wastebin.db WASTEBIN_CACHE_SIZE=1024 WASTEBIN_HTTP_TIMEOUT=30 WASTEBIN_SIGNING_KEY=$(openssl rand -hex 32) WASTEBIN_PASTE_EXPIRATIONS=0,600,3600=d,86400,604800,2419200,29030400 EOF - systemctl stop wastebin - cat </etc/systemd/system/wastebin.service + systemctl stop wastebin + cat </etc/systemd/system/wastebin.service [Unit] Description=Wastebin Service After=network.target @@ -54,35 +54,35 @@ EnvironmentFile=/opt/wastebin-data/.env [Install] WantedBy=multi-user.target EOF - systemctl daemon-reload - fi - msg_ok "Migration Done" - if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then - msg_info "Stopping Wastebin" - systemctl stop wastebin - msg_ok "Wastebin Stopped" + systemctl daemon-reload + fi + msg_ok "Migration Done" + if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then + msg_info "Stopping Wastebin" + systemctl stop wastebin + msg_ok "Wastebin Stopped" - msg_info "Updating Wastebin" - temp_file=$(mktemp) -curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.zip" -o "$temp_file" - unzip -o -q $temp_file - cp -f wastebin /opt/wastebin/ - chmod +x /opt/wastebin/wastebin - echo "${RELEASE}" >/opt/${APP}_version.txt - msg_ok "Updated Wastebin" + msg_info "Updating Wastebin" + temp_file=$(mktemp) + curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.zip" -o "$temp_file" + $STD unzip -o $temp_file + cp -f wastebin /opt/wastebin/ + chmod +x /opt/wastebin/wastebin + echo "${RELEASE}" >/opt/${APP}_version.txt + msg_ok "Updated Wastebin" - msg_info "Starting Wastebin" - systemctl start wastebin - msg_ok "Started Wastebin" + msg_info "Starting Wastebin" + systemctl start wastebin + msg_ok "Started Wastebin" - msg_info "Cleaning Up" - rm -f $temp_file - msg_ok "Cleanup Completed" - msg_ok "Updated Successfully" - else - msg_ok "No update required. ${APP} is already at v${RELEASE}" - fi - exit + msg_info "Cleaning Up" + rm -f $temp_file + msg_ok "Cleanup Completed" + msg_ok "Updated Successfully" + else + msg_ok "No update required. ${APP} is already at v${RELEASE}" + fi + exit } start @@ -92,4 +92,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8088${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8088${CL}" diff --git a/ct/wavelog.sh b/ct/wavelog.sh index 34b608ffe..a99d22498 100644 --- a/ct/wavelog.sh +++ b/ct/wavelog.sh @@ -41,7 +41,7 @@ function update_script() { cp /opt/wavelog/assets/js/sections/custom.js /opt/custom.js fi curl -fsSL "https://github.com/wavelog/wavelog/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/wavelog/wavelog/archive/refs/tags/${RELEASE}.zip") - unzip -q ${RELEASE}.zip + $STD unzip ${RELEASE}.zip rm -rf /opt/wavelog mv wavelog-${RELEASE}/ /opt/wavelog rm -rf /opt/wavelog/install diff --git a/ct/zigbee2mqtt.sh b/ct/zigbee2mqtt.sh index 4960a29b2..591cf64a6 100644 --- a/ct/zigbee2mqtt.sh +++ b/ct/zigbee2mqtt.sh @@ -47,7 +47,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt curl -fsSL "https://github.com/Koenkk/zigbee2mqtt/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/Koenkk/zigbee2mqtt/archive/refs/tags/${RELEASE}.zip") - unzip -q ${RELEASE}.zip + $STD unzip ${RELEASE}.zip rm -rf /opt/zigbee2mqtt mv zigbee2mqtt-${RELEASE} /opt/zigbee2mqtt rm -rf /opt/zigbee2mqtt/data diff --git a/ct/zipline.sh b/ct/zipline.sh index 781b14999..2920d0db4 100644 --- a/ct/zipline.sh +++ b/ct/zipline.sh @@ -43,7 +43,7 @@ function update_script() { mkdir -p /opt/zipline-upload cp -R /opt/zipline/upload/* /opt/zipline-upload/ curl -fsSL "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip") - unzip -q v"${RELEASE}".zip + $STD unzip v"${RELEASE}".zip rm -R /opt/zipline mv zipline-"${RELEASE}" /opt/zipline cd /opt/zipline diff --git a/ct/zwave-js-ui.sh b/ct/zwave-js-ui.sh index c1ec805ff..4cd378c37 100644 --- a/ct/zwave-js-ui.sh +++ b/ct/zwave-js-ui.sh @@ -37,7 +37,7 @@ function update_script() { rm -rf /opt/zwave-js-ui/* cd /opt/zwave-js-ui curl -fsSL "https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip" -o $(basename "https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip") - unzip -q zwave-js-ui-${RELEASE}-linux.zip + $STD unzip zwave-js-ui-${RELEASE}-linux.zip msg_ok "Updated Z-Wave JS UI" msg_info "Starting Service" diff --git a/install/2fauth-install.sh b/install/2fauth-install.sh index 43a3feed9..c34ed14a6 100644 --- a/install/2fauth-install.sh +++ b/install/2fauth-install.sh @@ -45,8 +45,8 @@ msg_ok "Set up Database" msg_info "Setup 2FAuth" RELEASE=$(curl -fsSL https://api.github.com/repos/Bubka/2FAuth/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL "https://github.com/Bubka/2FAuth/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/Bubka/2FAuth/archive/refs/tags/${RELEASE}.zip") -unzip -q "${RELEASE}.zip" +curl -fsSL "https://github.com/Bubka/2FAuth/archive/refs/tags/${RELEASE}.zip" -o "${RELEASE}.zip" +$STD unzip "${RELEASE}.zip" mv "2FAuth-${RELEASE//v/}/" /opt/2fauth cd "/opt/2fauth" || return diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index 39279203a..a56cd6949 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -52,8 +52,8 @@ DJANGO_ADMIN_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)" LOCAL_IP="$(hostname -I | awk '{print $1}')" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/seanmorley15/AdventureLog/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/seanmorley15/AdventureLog/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/seanmorley15/AdventureLog/archive/refs/tags/v${RELEASE}.zip") -unzip -q v${RELEASE}.zip +curl -fsSL "https://github.com/seanmorley15/AdventureLog/archive/refs/tags/v${RELEASE}.zip" -o "v${RELEASE}.zip" +$STD unzip v${RELEASE}.zip mv AdventureLog-${RELEASE} /opt/adventurelog cat </opt/adventurelog/backend/server/.env PGHOST='localhost' diff --git a/install/agentdvr-install.sh b/install/agentdvr-install.sh index 1e00e94dc..ffd2fabe2 100644 --- a/install/agentdvr-install.sh +++ b/install/agentdvr-install.sh @@ -14,7 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y unzip $STD apt-get install -y apt-transport-https $STD apt-get install -y alsa-utils $STD apt-get install -y libxext-dev diff --git a/install/alpine-docker-install.sh b/install/alpine-docker-install.sh index 67b1b5c2a..46745d782 100644 --- a/install/alpine-docker-install.sh +++ b/install/alpine-docker-install.sh @@ -14,12 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apk add newt -$STD apk add curl -$STD apk add openssh $STD apk add tzdata -$STD apk add nano -$STD apk add mc msg_ok "Installed Dependencies" msg_info "Installing Docker" diff --git a/install/alpine-grafana-install.sh b/install/alpine-grafana-install.sh index 8deae4dff..7f3ce111c 100644 --- a/install/alpine-grafana-install.sh +++ b/install/alpine-grafana-install.sh @@ -13,14 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apk add newt -$STD apk add curl -$STD apk add openssh -$STD apk add nano -$STD apk add mc -msg_ok "Installed Dependencies" - msg_info "Installing Grafana" $STD apk add grafana $STD sed -i '/http_addr/s/127.0.0.1/0.0.0.0/g' /etc/conf.d/grafana diff --git a/install/alpine-install.sh b/install/alpine-install.sh index aabf22346..1c01e0167 100644 --- a/install/alpine-install.sh +++ b/install/alpine-install.sh @@ -14,11 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apk add newt -$STD apk add curl -$STD apk add openssh -$STD apk add nano -$STD apk add mc +$STD apk add sudo msg_ok "Installed Dependencies" motd_ssh diff --git a/install/alpine-it-tools-install.sh b/install/alpine-it-tools-install.sh index 1a444a33b..11f6c055b 100644 --- a/install/alpine-it-tools-install.sh +++ b/install/alpine-it-tools-install.sh @@ -14,12 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apk add \ - curl \ - mc \ - openssh \ - nginx \ - unzip +$STD apk add nginx msg_ok "Installed Dependencies" msg_info "Installing IT-Tools" @@ -28,7 +23,7 @@ DOWNLOAD_URL="https://github.com/CorentinTh/it-tools/releases/download/${RELEASE curl -fsSL -o it-tools.zip "$DOWNLOAD_URL" mkdir -p /usr/share/nginx/html -unzip -q it-tools.zip -d /tmp/it-tools +$STD unzip it-tools.zip -d /tmp/it-tools cp -r /tmp/it-tools/dist/* /usr/share/nginx/html cat <<'EOF' >/etc/nginx/http.d/default.conf server { diff --git a/install/alpine-nextcloud-install.sh b/install/alpine-nextcloud-install.sh index bbfed7e2d..0fb308317 100644 --- a/install/alpine-nextcloud-install.sh +++ b/install/alpine-nextcloud-install.sh @@ -14,12 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apk add newt -$STD apk add curl $STD apk add openssl -$STD apk add openssh -$STD apk add nano -$STD apk add mc $STD apk add nginx msg_ok "Installed Dependencies" diff --git a/install/alpine-rclone-install.sh b/install/alpine-rclone-install.sh index 59368b973..ed0b3cc70 100644 --- a/install/alpine-rclone-install.sh +++ b/install/alpine-rclone-install.sh @@ -15,7 +15,6 @@ update_os msg_info "Installing dependencies" $STD apk add --no-cache \ - unzip \ apache2-utils msg_ok "Installed dependencies" diff --git a/install/alpine-tinyauth-install.sh b/install/alpine-tinyauth-install.sh index 5692be0a8..23854d317 100644 --- a/install/alpine-tinyauth-install.sh +++ b/install/alpine-tinyauth-install.sh @@ -16,7 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apk add --no-cache \ npm \ - curl \ go msg_ok "Installed Dependencies" diff --git a/install/alpine-zigbee2mqtt-install.sh b/install/alpine-zigbee2mqtt-install.sh index dee853801..59c14ac30 100644 --- a/install/alpine-zigbee2mqtt-install.sh +++ b/install/alpine-zigbee2mqtt-install.sh @@ -13,14 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apk add newt -$STD apk add curl -$STD apk add openssh -$STD apk add nano -$STD apk add mc -msg_ok "Installed Dependencies" - msg_info "Installing Alpine-Zigbee2MQTT" $STD apk add zigbee2mqtt mkdir -p /root/.z2m diff --git a/install/apache-couchdb-install.sh b/install/apache-couchdb-install.sh index eea4b8413..9005dc078 100644 --- a/install/apache-couchdb-install.sh +++ b/install/apache-couchdb-install.sh @@ -15,7 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y apt-transport-https -$STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Installing Apache CouchDB" diff --git a/install/audiobookshelf-install.sh b/install/audiobookshelf-install.sh index 0d9adf48f..b1003f581 100644 --- a/install/audiobookshelf-install.sh +++ b/install/audiobookshelf-install.sh @@ -13,10 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y gnupg -msg_ok "Installed Dependencies" - msg_info "Installing audiobookshelf" curl -fsSL https://advplyr.github.io/audiobookshelf-ppa/KEY.gpg >/etc/apt/trusted.gpg.d/audiobookshelf-ppa.asc echo "deb [signed-by=/etc/apt/trusted.gpg.d/audiobookshelf-ppa.asc] https://advplyr.github.io/audiobookshelf-ppa ./" >/etc/apt/sources.list.d/audiobookshelf.list diff --git a/install/baikal-install.sh b/install/baikal-install.sh index b5c293736..6e1a99619 100644 --- a/install/baikal-install.sh +++ b/install/baikal-install.sh @@ -40,7 +40,7 @@ msg_info "Installing Baikal" RELEASE=$(curl -fsSL https://api.github.com/repos/sabre-io/Baikal/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') cd /opt curl -fsSL "https://github.com/sabre-io/baikal/releases/download/${RELEASE}/baikal-${RELEASE}.zip" -o $(basename "https://github.com/sabre-io/baikal/releases/download/${RELEASE}/baikal-${RELEASE}.zip") -unzip -q "baikal-${RELEASE}.zip" +$STD unzip "baikal-${RELEASE}.zip" cat </opt/baikal/config/baikal.yaml database: backend: pgsql diff --git a/install/barcode-buddy-install.sh b/install/barcode-buddy-install.sh index b646bf9ee..6f4ff92fc 100644 --- a/install/barcode-buddy-install.sh +++ b/install/barcode-buddy-install.sh @@ -25,7 +25,7 @@ msg_info "Installing barcodebuddy" RELEASE=$(curl -fsSL https://api.github.com/repos/Forceu/barcodebuddy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cd /opt curl -fsSL "https://github.com/Forceu/barcodebuddy/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/Forceu/barcodebuddy/archive/refs/tags/v${RELEASE}.zip") -unzip -q "v${RELEASE}.zip" +$STD unzip "v${RELEASE}.zip" mv "/opt/barcodebuddy-${RELEASE}" /opt/barcodebuddy chown -R www-data:www-data /opt/barcodebuddy/data echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/bazarr-install.sh b/install/bazarr-install.sh index 5b8d473dd..1032b46c1 100755 --- a/install/bazarr-install.sh +++ b/install/bazarr-install.sh @@ -24,7 +24,7 @@ msg_ok "Setup Python3" msg_info "Installing Bazarr" mkdir -p /var/lib/bazarr/ curl -fsSL "https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip" -o $(basename "https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip") -unzip -qq bazarr -d /opt/bazarr +$STD unzip bazarr -d /opt/bazarr chmod 775 /opt/bazarr /var/lib/bazarr/ $STD python3 -m pip install -q -r /opt/bazarr/requirements.txt msg_ok "Installed Bazarr" diff --git a/install/bookstack-install.sh b/install/bookstack-install.sh index 7df4d0e8f..769e01467 100644 --- a/install/bookstack-install.sh +++ b/install/bookstack-install.sh @@ -15,7 +15,6 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y \ - unzip \ apache2 \ php8.2-{mbstring,gd,fpm,curl,intl,ldap,tidy,bz2,mysql,zip,xml} \ composer \ @@ -45,7 +44,7 @@ LOCAL_IP="$(hostname -I | awk '{print $1}')" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/BookStackApp/BookStack/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip") -unzip -q v${RELEASE}.zip +$STD unzip v${RELEASE}.zip mv BookStack-${RELEASE} /opt/bookstack cd /opt/bookstack cp .env.example .env diff --git a/install/changedetection-install.sh b/install/changedetection-install.sh index cd590815a..976b6159d 100644 --- a/install/changedetection-install.sh +++ b/install/changedetection-install.sh @@ -40,8 +40,7 @@ $STD apt-get install -y \ qpdf \ xdg-utils \ xvfb \ - ca-certificates \ - gnupg + ca-certificates msg_ok "Installed Dependencies" msg_info "Setup Python3" diff --git a/install/commafeed-install.sh b/install/commafeed-install.sh index a3bc94e02..d990a2d55 100644 --- a/install/commafeed-install.sh +++ b/install/commafeed-install.sh @@ -29,7 +29,7 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/Athou/commafeed/releases/lates msg_info "Installing CommaFeed ${RELEASE}" mkdir /opt/commafeed curl -fsSL "https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip" -o $(basename "https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip") -unzip -q commafeed-${RELEASE}-h2-jvm.zip +$STD unzip commafeed-${RELEASE}-h2-jvm.zip mv commafeed-${RELEASE}-h2/* /opt/commafeed/ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed CommaFeed ${RELEASE}" diff --git a/install/cosmos-install.sh b/install/cosmos-install.sh index c79c777e2..289f31cfb 100644 --- a/install/cosmos-install.sh +++ b/install/cosmos-install.sh @@ -15,9 +15,9 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - snapraid \ - avahi-daemon \ - fdisk + snapraid \ + avahi-daemon \ + fdisk msg_ok "Installed Dependencies" msg_info "Install mergerfs" @@ -39,7 +39,7 @@ LATEST_RELEASE=$(curl -fsSL https://api.github.com/repos/azukaar/Cosmos-Server/r ZIP_FILE="cosmos-cloud-${LATEST_RELEASE#v}-amd64.zip" curl -fsSL "https://github.com/azukaar/Cosmos-Server/releases/download/${LATEST_RELEASE}/${ZIP_FILE}" -o "/opt/cosmos/${ZIP_FILE}" cd /opt/cosmos -unzip -o -q "${ZIP_FILE}" +$STD unzip -o -q "${ZIP_FILE}" LATEST_RELEASE_NO_V=${LATEST_RELEASE#v} mv /opt/cosmos/cosmos-cloud-${LATEST_RELEASE_NO_V}/* /opt/cosmos/ rmdir /opt/cosmos/cosmos-cloud-${LATEST_RELEASE_NO_V} diff --git a/install/crafty-controller-install.sh b/install/crafty-controller-install.sh index 9a859eb58..991684f98 100644 --- a/install/crafty-controller-install.sh +++ b/install/crafty-controller-install.sh @@ -48,7 +48,7 @@ mkdir -p /opt/crafty-controller/crafty /opt/crafty-controller/server RELEASE=$(curl -fsSL "https://gitlab.com/api/v4/projects/20430749/releases" | grep -o '"tag_name":"v[^"]*"' | head -n 1 | sed 's/"tag_name":"v//;s/"//') echo "${RELEASE}" >"/opt/crafty-controller_version.txt" curl -fsSL "https://gitlab.com/crafty-controller/crafty-4/-/archive/v${RELEASE}/crafty-4-v${RELEASE}.zip" -o $(basename "https://gitlab.com/crafty-controller/crafty-4/-/archive/v${RELEASE}/crafty-4-v${RELEASE}.zip") -unzip -q crafty-4-v${RELEASE}.zip +$STD unzip crafty-4-v${RELEASE}.zip cp -a crafty-4-v${RELEASE}/. /opt/crafty-controller/crafty/crafty-4/ rm -rf crafty-4-v${RELEASE} diff --git a/install/documenso-install.sh b/install/documenso-install.sh index f2013396a..861f3f40e 100644 --- a/install/documenso-install.sh +++ b/install/documenso-install.sh @@ -52,7 +52,7 @@ msg_info "Installing Documenso (Patience)" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/documenso/documenso/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/documenso/documenso/archive/refs/tags/v${RELEASE}.zip" -o v${RELEASE}.zip -unzip -q v${RELEASE}.zip +$STD unzip v${RELEASE}.zip mv documenso-${RELEASE} /opt/documenso cd /opt/documenso mv .env.example /opt/documenso/.env diff --git a/install/fileflows-install.sh b/install/fileflows-install.sh index 77a3244f5..459f5dc8d 100644 --- a/install/fileflows-install.sh +++ b/install/fileflows-install.sh @@ -56,7 +56,7 @@ $STD ln -svf /usr/bin/ffmpeg /usr/local/bin/ffmpeg $STD ln -svf /usr/bin/ffprobe /usr/local/bin/ffprobe temp_file=$(mktemp) curl -fsSL https://fileflows.com/downloads/zip -o "$temp_file" -unzip -q -d /opt/fileflows "$temp_file" +$STD unzip -d /opt/fileflows "$temp_file" (cd /opt/fileflows/Server && dotnet FileFlows.Server.dll --systemd install --root true) systemctl enable -q --now fileflows msg_ok "Setup ${APPLICATION}" diff --git a/install/fluid-calendar-install.sh b/install/fluid-calendar-install.sh index e32ab2013..5dca3c133 100644 --- a/install/fluid-calendar-install.sh +++ b/install/fluid-calendar-install.sh @@ -48,7 +48,7 @@ msg_info "Setup ${APPLICATION}" tmp_file=$(mktemp) RELEASE=$(curl -fsSL https://api.github.com/repos/dotnetfactory/fluid-calendar/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/dotnetfactory/fluid-calendar/archive/refs/tags/v${RELEASE}.zip" -o "$tmp_file" -unzip -q $tmp_file +$STD unzip $tmp_file mv ${APPLICATION}-${RELEASE}/ /opt/${APPLICATION} echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/freshrss-install.sh b/install/freshrss-install.sh index a151f2cf2..c4e7c0479 100644 --- a/install/freshrss-install.sh +++ b/install/freshrss-install.sh @@ -40,7 +40,7 @@ msg_info "Installing FreshRSS" RELEASE=$(curl -fsSL https://api.github.com/repos/FreshRSS/FreshRSS/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') cd /opt curl -fsSL "https://github.com/FreshRSS/FreshRSS/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/FreshRSS/FreshRSS/archive/refs/tags/${RELEASE}.zip") -unzip -q "${RELEASE}.zip" +$STD unzip "${RELEASE}.zip" mv "/opt/FreshRSS-${RELEASE}" /opt/freshrss cd /opt/freshrss chown -R www-data:www-data /opt/freshrss diff --git a/install/frigate-install.sh b/install/frigate-install.sh index f8ce1afa6..a1d5fa339 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -137,7 +137,7 @@ cd /opt/frigate export CCACHE_DIR=/root/.ccache export CCACHE_MAXSIZE=2G curl -fsSL "https://github.com/libusb/libusb/archive/v1.0.26.zip" -o $(basename "https://github.com/libusb/libusb/archive/v1.0.26.zip") -unzip -q v1.0.26.zip +$STD unzip v1.0.26.zip rm v1.0.26.zip cd libusb-1.0.26 $STD ./bootstrap.sh diff --git a/install/gokapi-install.sh b/install/gokapi-install.sh index 49ffd73e2..bf3de9532 100644 --- a/install/gokapi-install.sh +++ b/install/gokapi-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Gokapi" LATEST=$(curl -fsSL https://api.github.com/repos/Forceu/Gokapi/releases/latest | grep '"tag_name":' | cut -d'"' -f4) mkdir -p /opt/gokapi/{data,config} curl -fsSL "https://github.com/Forceu/Gokapi/releases/download/$LATEST/gokapi-linux_amd64.zip" -o $(basename "https://github.com/Forceu/Gokapi/releases/download/$LATEST/gokapi-linux_amd64.zip") -unzip -q gokapi-linux_amd64.zip -d /opt/gokapi +$STD unzip gokapi-linux_amd64.zip -d /opt/gokapi rm gokapi-linux_amd64.zip chmod +x /opt/gokapi/gokapi-linux_amd64 msg_ok "Installed Gokapi" diff --git a/install/gotify-install.sh b/install/gotify-install.sh index 431aea59d..982f85877 100644 --- a/install/gotify-install.sh +++ b/install/gotify-install.sh @@ -18,7 +18,7 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/gotify/server/releases/latest mkdir -p /opt/gotify cd /opt/gotify curl -fsSL "https://github.com/gotify/server/releases/download/v${RELEASE}/gotify-linux-amd64.zip" -o $(basename "https://github.com/gotify/server/releases/download/v${RELEASE}/gotify-linux-amd64.zip") -unzip -q gotify-linux-amd64.zip +$STD unzip gotify-linux-amd64.zip rm -rf gotify-linux-amd64.zip chmod +x gotify-linux-amd64 echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/grafana-install.sh b/install/grafana-install.sh index 46caaf5d4..a0cf17cff 100644 --- a/install/grafana-install.sh +++ b/install/grafana-install.sh @@ -14,7 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y gnupg $STD apt-get install -y apt-transport-https $STD apt-get install -y software-properties-common msg_ok "Installed Dependencies" diff --git a/install/graylog-install.sh b/install/graylog-install.sh index 5316dcc4a..52ba757e4 100644 --- a/install/graylog-install.sh +++ b/install/graylog-install.sh @@ -13,10 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y gnupg -msg_ok "Installed Dependencies" - msg_info "Setup MongoDB" curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor echo "deb [signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" >/etc/apt/sources.list.d/mongodb-org-7.0.list diff --git a/install/grist-install.sh b/install/grist-install.sh index 8453f0fa2..2c73d66a5 100644 --- a/install/grist-install.sh +++ b/install/grist-install.sh @@ -17,7 +17,6 @@ msg_info "Installing Dependencies" $STD apt-get install -y \ make \ ca-certificates \ - unzip \ python3.11-venv msg_ok "Installed Dependencies" @@ -29,7 +28,7 @@ export CYPRESS_INSTALL_BINARY=0 export NODE_OPTIONS="--max-old-space-size=2048" cd /opt curl -fsSL "https://github.com/gristlabs/grist-core/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/gristlabs/grist-core/archive/refs/tags/v${RELEASE}.zip") -unzip -q v$RELEASE.zip +$STD unzip v$RELEASE.zip mv grist-core-${RELEASE} grist cd grist $STD yarn install diff --git a/install/hivemq-install.sh b/install/hivemq-install.sh index dcfed77b6..642311a06 100644 --- a/install/hivemq-install.sh +++ b/install/hivemq-install.sh @@ -23,7 +23,7 @@ msg_ok "Installed OpenJDK" msg_info "Installing HiveMQ CE" RELEASE=$(curl -fsSL https://api.github.com/repos/hivemq/hivemq-community-edition/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/hivemq/hivemq-community-edition/releases/download/${RELEASE}/hivemq-ce-${RELEASE}.zip" -o $(basename "https://github.com/hivemq/hivemq-community-edition/releases/download/${RELEASE}/hivemq-ce-${RELEASE}.zip") -unzip -q hivemq-ce-${RELEASE}.zip +$STD unzip hivemq-ce-${RELEASE}.zip mkdir -p /opt/hivemq mv hivemq-ce-${RELEASE}/* /opt/hivemq useradd -d /opt/hivemq hivemq diff --git a/install/hyperhdr-install.sh b/install/hyperhdr-install.sh index ce84bec9a..b83d31813 100644 --- a/install/hyperhdr-install.sh +++ b/install/hyperhdr-install.sh @@ -13,10 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y gpg -msg_ok "Installed Dependencies" - msg_info "Installing HyperHDR" curl -fsSL https://awawa-dev.github.io/hyperhdr.public.apt.gpg.key >/usr/share/keyrings/hyperhdr.public.apt.gpg.key chmod go+r /usr/share/keyrings/hyperhdr.public.apt.gpg.key diff --git a/install/inventree-install.sh b/install/inventree-install.sh index 261c4ebf1..aba26f1be 100644 --- a/install/inventree-install.sh +++ b/install/inventree-install.sh @@ -14,7 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y gnupg temp_file=$(mktemp) curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb" -o "$temp_file" $STD dpkg -i $temp_file diff --git a/install/iobroker-install.sh b/install/iobroker-install.sh index e3f88f5ea..c4494b7a4 100644 --- a/install/iobroker-install.sh +++ b/install/iobroker-install.sh @@ -15,7 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y ca-certificates -$STD apt-get install -y gnupg msg_ok "Installed Dependencies" NODE_VERSION="22" install_node_and_modules diff --git a/install/karakeep-install.sh b/install/karakeep-install.sh index d7b8bc1b9..e74854123 100644 --- a/install/karakeep-install.sh +++ b/install/karakeep-install.sh @@ -55,7 +55,7 @@ msg_info "Installing karakeep" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/karakeep-app/karakeep/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/karakeep-app/karakeep/archive/refs/tags/v${RELEASE}.zip" -o "v${RELEASE}.zip" -unzip -q "v${RELEASE}.zip" +$STD unzip "v${RELEASE}.zip" mv karakeep-"${RELEASE}" /opt/karakeep cd /opt/karakeep corepack enable diff --git a/install/keycloak-install.sh b/install/keycloak-install.sh index b59506095..26127ae7b 100644 --- a/install/keycloak-install.sh +++ b/install/keycloak-install.sh @@ -13,10 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y gnupg -msg_ok "Installed Dependencies" - msg_info "Installing OpenJDK" curl -fsSL "https://packages.adoptium.net/artifactory/api/gpg/key/public" | gpg --dearmor >/etc/apt/trusted.gpg.d/adoptium.gpg echo 'deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/adoptium.gpg] https://packages.adoptium.net/artifactory/deb bookworm main' >/etc/apt/sources.list.d/adoptium.list diff --git a/install/kimai-install.sh b/install/kimai-install.sh index 7bef81646..2357abdaf 100644 --- a/install/kimai-install.sh +++ b/install/kimai-install.sh @@ -59,7 +59,7 @@ msg_ok "Set up database" msg_info "Installing Kimai (Patience)" RELEASE=$(curl -fsSL https://api.github.com/repos/kimai/kimai/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip") -unzip -q "${RELEASE}".zip +$STD unzip "${RELEASE}".zip mv kimai-"${RELEASE}" /opt/kimai cd /opt/kimai echo "export COMPOSER_ALLOW_SUPERUSER=1" >>~/.bashrc diff --git a/install/koillection-install.sh b/install/koillection-install.sh index 6c57ce413..bd9093d44 100644 --- a/install/koillection-install.sh +++ b/install/koillection-install.sh @@ -55,7 +55,7 @@ msg_info "Installing Koillection" RELEASE=$(curl -fsSL https://api.github.com/repos/benjaminjonard/koillection/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') cd /opt curl -fsSL "https://github.com/benjaminjonard/koillection/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/benjaminjonard/koillection/archive/refs/tags/${RELEASE}.zip") -unzip -q "${RELEASE}.zip" +$STD unzip "${RELEASE}.zip" mv "/opt/koillection-${RELEASE}" /opt/koillection cd /opt/koillection cp /opt/koillection/.env /opt/koillection/.env.local diff --git a/install/lubelogger-install.sh b/install/lubelogger-install.sh index 10d14761d..69647e6fc 100644 --- a/install/lubelogger-install.sh +++ b/install/lubelogger-install.sh @@ -24,7 +24,7 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/hargata/lubelog/releases/lates RELEASE_TRIMMED=$(echo "${RELEASE}" | tr -d ".") cd /opt/lubelogger curl -fsSL "https://github.com/hargata/lubelog/releases/download/v${RELEASE}/LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip" -o $(basename "https://github.com/hargata/lubelog/releases/download/v${RELEASE}/LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip") -unzip -q LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip +$STD unzip LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip chmod 700 /opt/lubelogger/CarCareTracker cp /opt/lubelogger/appsettings.json /opt/lubelogger/appsettings_bak.json jq '.Kestrel = {"Endpoints": {"Http": {"Url": "http://0.0.0.0:5000"}}}' /opt/lubelogger/appsettings_bak.json >/opt/lubelogger/appsettings.json diff --git a/install/meilisearch-install.sh b/install/meilisearch-install.sh index 88e358789..ff76d4f27 100644 --- a/install/meilisearch-install.sh +++ b/install/meilisearch-install.sh @@ -13,11 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y \ - gnupg -msg_ok "Installed Dependencies" - msg_info "Setup ${APPLICATION}" tmp_file=$(mktemp) RELEASE=$(curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') @@ -48,7 +43,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then mkdir -p /opt/meilisearch-ui RELEASE_UI=$(curl -s https://api.github.com/repos/riccox/meilisearch-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/riccox/meilisearch-ui/archive/refs/tags/${RELEASE_UI}.zip" -o "$tmp_file" - unzip -q "$tmp_file" -d "$tmp_dir" + $STD unzip "$tmp_file" -d "$tmp_dir" mv "$tmp_dir"/*/* /opt/meilisearch-ui/ cd /opt/meilisearch-ui sed -i 's|const hash = execSync("git rev-parse HEAD").toString().trim();|const hash = "unknown";|' /opt/meilisearch-ui/vite.config.ts diff --git a/install/mongodb-install.sh b/install/mongodb-install.sh index 13c2c4831..94398616b 100644 --- a/install/mongodb-install.sh +++ b/install/mongodb-install.sh @@ -13,10 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y gnupg -msg_ok "Installed Dependencies" - read -p "${TAB3}Do you want to install MongoDB 8.0 instead of 7.0? [y/N]: " install_mongodb_8 if [[ "$install_mongodb_8" =~ ^[Yy]$ ]]; then MONGODB_VERSION="8.0" diff --git a/install/myspeed-install.sh b/install/myspeed-install.sh index d85274b70..ddbde2d70 100644 --- a/install/myspeed-install.sh +++ b/install/myspeed-install.sh @@ -25,7 +25,7 @@ msg_info "Installing MySpeed" RELEASE=$(curl -fsSL https://github.com/gnmyt/myspeed/releases/latest | grep "title>Release" | cut -d " " -f 5) cd /opt curl -fsSL "https://github.com/gnmyt/myspeed/releases/download/v$RELEASE/MySpeed-$RELEASE.zip" -o $(basename "https://github.com/gnmyt/myspeed/releases/download/v$RELEASE/MySpeed-$RELEASE.zip") -unzip -q MySpeed-$RELEASE.zip -d myspeed +$STD unzip MySpeed-$RELEASE.zip -d myspeed cd myspeed $STD npm install echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/mysql-install.sh b/install/mysql-install.sh index 2d4fc5e2e..5f5251535 100644 --- a/install/mysql-install.sh +++ b/install/mysql-install.sh @@ -16,8 +16,7 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - lsb-release \ - gnupg + lsb-release msg_ok "Installed Dependencies" RELEASE_REPO="mysql-8.0" diff --git a/install/netbox-install.sh b/install/netbox-install.sh index 967a010c4..110f163c4 100644 --- a/install/netbox-install.sh +++ b/install/netbox-install.sh @@ -54,7 +54,7 @@ msg_info "Installing NetBox (Patience)" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/netbox-community/netbox/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/netbox-community/netbox/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/netbox-community/netbox/archive/refs/tags/v${RELEASE}.zip") -unzip -q "v${RELEASE}.zip" +$STD unzip "v${RELEASE}.zip" mv /opt/netbox-"${RELEASE}"/ /opt/netbox $STD adduser --system --group netbox diff --git a/install/nodebb-install.sh b/install/nodebb-install.sh index 3dae80732..64247da90 100644 --- a/install/nodebb-install.sh +++ b/install/nodebb-install.sh @@ -69,7 +69,7 @@ msg_info "Install NodeBB" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/NodeBB/NodeBB/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/NodeBB/NodeBB/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/NodeBB/NodeBB/archive/refs/tags/v${RELEASE}.zip") -unzip -q v${RELEASE}.zip +$STD unzip v${RELEASE}.zip mv NodeBB-${RELEASE} /opt/nodebb cd /opt/nodebb touch pidfile diff --git a/install/openproject-install.sh b/install/openproject-install.sh index 02b9ef8f0..4f2ad09ae 100644 --- a/install/openproject-install.sh +++ b/install/openproject-install.sh @@ -16,13 +16,12 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ apt-transport-https \ - ca-certificates \ - gpg + ca-certificates msg_ok "Installed Dependencies" msg_info "Setting up OpenProject Repository" curl -fsSL "https://dl.packager.io/srv/opf/openproject/key" | gpg --dearmor >/etc/apt/trusted.gpg.d/packager-io.gpg -curl -fsSL "https://dl.packager.io/srv/opf/openproject/stable/15/installer/debian/12.repo" -o "/etc/apt/sources.list.d/openproject.list" +curl -fsSL "https://dl.packager.io/srv/opf/openproject/stable/15/installer/debian/12.repo" -o "/etc/apt/sources.list.d/openproject.list" msg_ok "Setup OpenProject Repository" msg_info "Setting up PostgreSQL Repository" diff --git a/install/paperless-ai-install.sh b/install/paperless-ai-install.sh index fd93aa8e0..196403695 100644 --- a/install/paperless-ai-install.sh +++ b/install/paperless-ai-install.sh @@ -29,7 +29,7 @@ msg_info "Setup Paperless-AI" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/clusterzx/paperless-ai/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/clusterzx/paperless-ai/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/clusterzx/paperless-ai/archive/refs/tags/v${RELEASE}.zip") -unzip -q v${RELEASE}.zip +$STD unzip v${RELEASE}.zip mv paperless-ai-${RELEASE} /opt/paperless-ai cd /opt/paperless-ai $STD pip install --no-cache-dir -r requirements.txt diff --git a/install/part-db-install.sh b/install/part-db-install.sh index a865c670a..55c91521a 100644 --- a/install/part-db-install.sh +++ b/install/part-db-install.sh @@ -51,7 +51,7 @@ msg_info "Installing Part-DB (Patience)" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/Part-DB/Part-DB-server/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/Part-DB/Part-DB-server/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/Part-DB/Part-DB-server/archive/refs/tags/v${RELEASE}.zip") -unzip -q "v${RELEASE}.zip" +$STD unzip "v${RELEASE}.zip" mv /opt/Part-DB-server-${RELEASE}/ /opt/partdb cd /opt/partdb/ diff --git a/install/petio-install.sh b/install/petio-install.sh index 41aaabb6c..ff4337c71 100644 --- a/install/petio-install.sh +++ b/install/petio-install.sh @@ -13,19 +13,15 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y gnupg -msg_ok "Installed Dependencies" - msg_info "Installing MongoDB 4.4" curl -fsSL "https://www.mongodb.org/static/pgp/server-4.4.asc" | gpg --dearmor >/usr/share/keyrings/mongodb-server-4.4.gpg # Determine OS ID OS_ID=$(grep '^ID=' /etc/os-release | cut -d'=' -f2) if [ "$OS_ID" = "debian" ]; then - echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] http://repo.mongodb.org/apt/debian $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2)/mongodb-org/4.4 main" >/etc/apt/sources.list.d/mongodb-org-4.4.list + echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] http://repo.mongodb.org/apt/debian $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2)/mongodb-org/4.4 main" >/etc/apt/sources.list.d/mongodb-org-4.4.list else - echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] https://repo.mongodb.org/apt/ubuntu $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2)/mongodb-org/4.4 multiverse" >/etc/apt/sources.list.d/mongodb-org-4.4.list + echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] https://repo.mongodb.org/apt/ubuntu $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2)/mongodb-org/4.4 multiverse" >/etc/apt/sources.list.d/mongodb-org-4.4.list fi $STD apt-get update @@ -38,7 +34,7 @@ msg_info "Installing Petio" useradd -M --shell=/bin/false petio mkdir /opt/Petio curl -fsSL "https://petio.tv/releases/latest" -o "petio-latest.zip" -$STD unzip -q petio-latest.zip -d /opt/Petio +$STD unzip petio-latest.zip -d /opt/Petio rm -rf petio-latest.zip chown -R petio:petio /opt/Petio msg_ok "Installed Petio" diff --git a/install/pf2etools-install.sh b/install/pf2etools-install.sh index 072d933c4..c5b10bca9 100644 --- a/install/pf2etools-install.sh +++ b/install/pf2etools-install.sh @@ -26,7 +26,7 @@ msg_info "Setup Pf2eTools" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip") -unzip -q "${RELEASE}.zip" +$STD unzip "${RELEASE}.zip" mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools cd /opt/Pf2eTools $STD npm install diff --git a/install/phpipam-install.sh b/install/phpipam-install.sh index e6d4b9ad4..27200c60b 100644 --- a/install/phpipam-install.sh +++ b/install/phpipam-install.sh @@ -42,7 +42,7 @@ msg_info "Installing phpIPAM" RELEASE=$(curl -fsSL https://api.github.com/repos/phpipam/phpipam/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cd /opt curl -fsSL "https://github.com/phpipam/phpipam/releases/download/v${RELEASE}/phpipam-v${RELEASE}.zip" -o $(basename "https://github.com/phpipam/phpipam/releases/download/v${RELEASE}/phpipam-v${RELEASE}.zip") -unzip -q "phpipam-v${RELEASE}.zip" +$STD unzip "phpipam-v${RELEASE}.zip" mysql -u root "${DB_NAME}" "/opt/pingvin_version.txt" mv pingvin-share-${RELEASE} /opt/pingvin-share cd /opt/pingvin-share/backend diff --git a/install/pocketbase-install.sh b/install/pocketbase-install.sh index 295f1e6ed..d4929f9fd 100644 --- a/install/pocketbase-install.sh +++ b/install/pocketbase-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Pocketbase" RELEASE="$(curl -fsSL https://api.github.com/repos/pocketbase/pocketbase/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')" curl -fsSL "https://github.com/pocketbase/pocketbase/releases/download/v${RELEASE}/pocketbase_${RELEASE}_linux_amd64.zip" -o "/tmp/pocketbase.zip" mkdir -p /opt/pocketbase/{pb_public,pb_migrations,pb_hooks} -unzip -q -o /tmp/pocketbase.zip -d /opt/pocketbase +$STD unzip -o /tmp/pocketbase.zip -d /opt/pocketbase cat </etc/systemd/system/pocketbase.service [Unit] diff --git a/install/privatebin-install.sh b/install/privatebin-install.sh index 3fd6e83f7..b3b90cc15 100644 --- a/install/privatebin-install.sh +++ b/install/privatebin-install.sh @@ -15,11 +15,10 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - nginx \ - php8.2-fpm \ - php8.2-{common,cli,gd,mbstring,xml,fpm,curl,zip} \ - unzip \ - openssl + nginx \ + php8.2-fpm \ + php8.2-{common,cli,gd,mbstring,xml,fpm,curl,zip} \ + openssl msg_ok "Installed Dependencies" msg_info "Installing PrivateBin" @@ -28,16 +27,16 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt mkdir -p /opt/privatebin cd /opt/privatebin curl -fsSL "https://github.com/PrivateBin/PrivateBin/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/PrivateBin/PrivateBin/archive/refs/tags/${RELEASE}.zip") -$STD unzip -q ${RELEASE}.zip +$STD unzip ${RELEASE}.zip mv PrivateBin-${RELEASE}/* . msg_ok "Installed PrivateBin" msg_info "Generating Universal SSL Certificate" mkdir -p /etc/ssl/privatebin $STD openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \ - -keyout /etc/ssl/privatebin/key.pem \ - -out /etc/ssl/privatebin/cert.pem \ - -subj "/CN=PrivateBin" + -keyout /etc/ssl/privatebin/key.pem \ + -out /etc/ssl/privatebin/cert.pem \ + -subj "/CN=PrivateBin" msg_ok "Certificate Generated" msg_info "Configuring Environment" diff --git a/install/projectsend-install.sh b/install/projectsend-install.sh index 51e5a19b0..8522de071 100644 --- a/install/projectsend-install.sh +++ b/install/projectsend-install.sh @@ -42,7 +42,7 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/projectsend/projectsend/releas cd /opt curl -fsSL "https://github.com/projectsend/projectsend/releases/download/r${RELEASE}/projectsend-r${RELEASE}.zip" -o $(basename "https://github.com/projectsend/projectsend/releases/download/r${RELEASE}/projectsend-r${RELEASE}.zip") mkdir projectsend -unzip -q "projectsend-r${RELEASE}.zip" -d projectsend +$STD unzip "projectsend-r${RELEASE}.zip" -d projectsend mv /opt/projectsend/includes/sys.config.sample.php /opt/projectsend/includes/sys.config.php chown -R www-data:www-data /opt/projectsend chmod -R 775 /opt/projectsend diff --git a/install/rclone-install.sh b/install/rclone-install.sh index 35cae3ae3..920564143 100644 --- a/install/rclone-install.sh +++ b/install/rclone-install.sh @@ -14,9 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - apache2-utils \ - unzip +$STD apt-get install -y apache2-utils msg_ok "Installed Dependencies" msg_info "Installing rclone" diff --git a/install/rdtclient-install.sh b/install/rdtclient-install.sh index 68f792e0c..60ec6bec9 100644 --- a/install/rdtclient-install.sh +++ b/install/rdtclient-install.sh @@ -23,7 +23,7 @@ msg_ok "Installed ASP.NET Core Runtime" msg_info "Installing rdtclient" curl -fsSL "https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip" -o $(basename "https://github.com/rogerfar/rdt-client/releases/latest/download/RealDebridClient.zip") -unzip -qq RealDebridClient.zip -d /opt/rdtc +$STD unzip RealDebridClient.zip -d /opt/rdtc rm RealDebridClient.zip cd /opt/rdtc mkdir -p data/{db,downloads} diff --git a/install/reactive-resume-install.sh b/install/reactive-resume-install.sh index 12ae43027..7c9f06ac3 100644 --- a/install/reactive-resume-install.sh +++ b/install/reactive-resume-install.sh @@ -41,7 +41,7 @@ LOCAL_IP=$(hostname -I | awk '{print $1}') TAG=$(curl -fsSL https://api.github.com/repos/browserless/browserless/tags?per_page=1 | grep "name" | awk '{print substr($2, 3, length($2)-4) }') RELEASE=$(curl -fsSL https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/AmruthPillai/Reactive-Resume/archive/refs/tags/v${RELEASE}.zip" -o v${RELEASE}.zip -unzip -q v${RELEASE}.zip +$STD unzip v${RELEASE}.zip mv ${APPLICATION}-${RELEASE}/ /opt/${APPLICATION} cd /opt/${APPLICATION} corepack enable @@ -58,7 +58,7 @@ msg_ok "Installed ${APPLICATION}" msg_info "Installing Browserless (Patience)" cd /tmp curl -fsSL https://github.com/browserless/browserless/archive/refs/tags/v${TAG}.zip -o v${TAG}.zip -unzip -q v${TAG}.zip +$STD unzip v${TAG}.zip mv browserless-${TAG} /opt/browserless cd /opt/browserless $STD npm install diff --git a/install/silverbullet-install.sh b/install/silverbullet-install.sh index 3afd2f890..c6ed14c31 100644 --- a/install/silverbullet-install.sh +++ b/install/silverbullet-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Silverbullet" RELEASE=$(curl -fsSL https://api.github.com/repos/silverbulletmd/silverbullet/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') mkdir -p /opt/silverbullet/bin /opt/silverbullet/space curl -fsSL "https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip" -o $(basename "https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip") -unzip -oq -d /opt/silverbullet/bin/ silverbullet-server-linux-x86_64.zip +$STD unzip -o -d /opt/silverbullet/bin/ silverbullet-server-linux-x86_64.zip chmod +x /opt/silverbullet/bin/silverbullet echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Silverbullet" diff --git a/install/slskd-install.sh b/install/slskd-install.sh index 95601a23b..e2c16663e 100644 --- a/install/slskd-install.sh +++ b/install/slskd-install.sh @@ -22,7 +22,7 @@ msg_info "Setup ${APPLICATION}" tmp_file=$(mktemp) RELEASE=$(curl -s https://api.github.com/repos/slskd/slskd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/slskd/slskd/releases/download/${RELEASE}/slskd-${RELEASE}-linux-x64.zip" -o $tmp_file -unzip -q $tmp_file -d /opt/${APPLICATION} +$STD unzip $tmp_file -d /opt/${APPLICATION} echo "${RELEASE}" >/opt/${APPLICATION}_version.txt JWT_KEY=$(openssl rand -base64 44) SLSKD_API_KEY=$(openssl rand -base64 44) @@ -43,7 +43,7 @@ msg_info "Installing Soularr" rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED cd /tmp curl -fsSL -o main.zip https://github.com/mrusse/soularr/archive/refs/heads/main.zip -unzip -q main.zip +$STD unzip main.zip mv soularr-main /opt/soularr cd /opt/soularr $STD pip install -r requirements.txt diff --git a/install/spoolman-install.sh b/install/spoolman-install.sh index 24a727b3d..b1fb6f105 100644 --- a/install/spoolman-install.sh +++ b/install/spoolman-install.sh @@ -34,7 +34,7 @@ msg_info "Installing Spoolman" RELEASE=$(curl -fsSL https://github.com/Donkie/Spoolman/releases/latest | grep "title>Release" | cut -d " " -f 4) cd /opt curl -fsSL "https://github.com/Donkie/Spoolman/releases/download/$RELEASE/spoolman.zip" -o $(basename "https://github.com/Donkie/Spoolman/releases/download/$RELEASE/spoolman.zip") -unzip -q spoolman.zip -d spoolman +$STD unzip spoolman.zip -d spoolman rm -rf spoolman.zip cd spoolman $STD pip3 install -r requirements.txt diff --git a/install/syncthing-install.sh b/install/syncthing-install.sh index ebdbba502..282b673ea 100644 --- a/install/syncthing-install.sh +++ b/install/syncthing-install.sh @@ -13,10 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y gnupg -msg_ok "Installed Dependencies" - msg_info "Installing Syncthing" curl -fsSL -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg sh -c 'echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" > /etc/apt/sources.list.d/syncthing.list' diff --git a/install/teddycloud-install.sh b/install/teddycloud-install.sh index 7794702bb..d7599492c 100644 --- a/install/teddycloud-install.sh +++ b/install/teddycloud-install.sh @@ -24,7 +24,7 @@ msg_info "Installing TeddyCloud" RELEASE="$(curl -fsSL https://api.github.com/repos/toniebox-reverse-engineering/teddycloud/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')" VERSION="${RELEASE#tc_v}" curl -fsSL "https://github.com/toniebox-reverse-engineering/teddycloud/releases/download/${RELEASE}/teddycloud.amd64.release_v${VERSION}.zip" -o $(basename "https://github.com/toniebox-reverse-engineering/teddycloud/releases/download/${RELEASE}/teddycloud.amd64.release_v${VERSION}.zip") -unzip -q -d "/opt/teddycloud-${VERSION}" "teddycloud.amd64.release_v${VERSION}.zip" +$STD unzip -d "/opt/teddycloud-${VERSION}" "teddycloud.amd64.release_v${VERSION}.zip" ln -fns "/opt/teddycloud-${VERSION}" /opt/teddycloud rm -rf teddycloud.amd64.release_v${VERSION}.zip echo "${VERSION}" >"/opt/${APPLICATION}_version.txt" diff --git a/install/tianji-install.sh b/install/tianji-install.sh index 26251272e..bafcb4958 100644 --- a/install/tianji-install.sh +++ b/install/tianji-install.sh @@ -49,7 +49,7 @@ msg_info "Installing Tianji (Extreme Patience)" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/msgbyte/tianji/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/msgbyte/tianji/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/msgbyte/tianji/archive/refs/tags/v${RELEASE}.zip") -unzip -q v${RELEASE}.zip +$STD unzip v${RELEASE}.zip mv tianji-${RELEASE} /opt/tianji cd tianji $STD pnpm install --filter @tianji/client... --config.dedupe-peer-dependents=false --frozen-lockfile diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 62ae37a95..40a8dfd72 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -18,15 +18,15 @@ $STD curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microso $STD dpkg -i packages-microsoft-prod.deb $STD apt-get update $STD apt-get install -y \ - dotnet-sdk-8.0 \ - aspnetcore-runtime-8.0 + dotnet-sdk-8.0 \ + aspnetcore-runtime-8.0 msg_ok "Installed Dependencies" msg_info "Installing Umlautadaptarr" temp_file=$(mktemp) RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file -unzip -qj $temp_file '*/**' -d /opt/UmlautAdaptarr +$STD unzip -j $temp_file '*/**' -d /opt/UmlautAdaptarr echo "${RELEASE}" >"/opt/UmlautAdaptarr_version.txt" msg_ok "Installation completed" diff --git a/install/unifi-install.sh b/install/unifi-install.sh index aa0c15d83..8e342b694 100644 --- a/install/unifi-install.sh +++ b/install/unifi-install.sh @@ -15,7 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y apt-transport-https -$STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Installing Eclipse Temurin JRE" diff --git a/install/wallos-install.sh b/install/wallos-install.sh index e74e152f3..b49df8ff7 100644 --- a/install/wallos-install.sh +++ b/install/wallos-install.sh @@ -25,7 +25,7 @@ msg_info "Installing Wallos (Patience)" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/ellite/Wallos/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/ellite/Wallos/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/ellite/Wallos/archive/refs/tags/v${RELEASE}.zip") -unzip -q v${RELEASE}.zip +$STD unzip v${RELEASE}.zip mv Wallos-${RELEASE} /opt/wallos cd /opt/wallos mv /opt/wallos/db/wallos.empty.db /opt/wallos/db/wallos.db diff --git a/install/wastebin-install.sh b/install/wastebin-install.sh index 407e38b95..030681b39 100644 --- a/install/wastebin-install.sh +++ b/install/wastebin-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Wastebin" temp_file=$(mktemp) RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.zip" -o "$temp_file" -unzip -q $temp_file +$STD unzip $temp_file mkdir -p /opt/wastebin mv wastebin /opt/wastebin/ chmod +x /opt/wastebin/wastebin diff --git a/install/wavelog-install.sh b/install/wavelog-install.sh index 8c94f4515..b1053b936 100644 --- a/install/wavelog-install.sh +++ b/install/wavelog-install.sh @@ -45,7 +45,7 @@ msg_ok "Set up PHP" msg_info "Installing Wavelog" RELEASE=$(curl -fsSL https://api.github.com/repos/wavelog/wavelog/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/wavelog/wavelog/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/wavelog/wavelog/archive/refs/tags/${RELEASE}.zip") -unzip -q ${RELEASE}.zip +$STD unzip ${RELEASE}.zip mv wavelog-${RELEASE}/ /opt/wavelog chown -R www-data:www-data /opt/wavelog/ find /opt/wavelog/ -type d -exec chmod 755 {} \; diff --git a/install/wordpress-install.sh b/install/wordpress-install.sh index 1f5e78064..b2520861f 100644 --- a/install/wordpress-install.sh +++ b/install/wordpress-install.sh @@ -40,7 +40,7 @@ msg_ok "Set up Database" msg_info "Installing Wordpress (Patience)" cd /var/www/html curl -fsSL "https://wordpress.org/latest.zip" -o $(basename "https://wordpress.org/latest.zip") -unzip -q latest.zip +$STD unzip latest.zip chown -R www-data:www-data wordpress/ cd /var/www/html/wordpress find . -type d -exec chmod 755 {} \; diff --git a/install/yunohost-install.sh b/install/yunohost-install.sh index 8c6de6d65..fc16b9213 100644 --- a/install/yunohost-install.sh +++ b/install/yunohost-install.sh @@ -14,7 +14,6 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y gnupg $STD apt-get install -y apt-transport-https $STD apt-get install -y lsb-release $STD apt-get install -y ca-certificates diff --git a/install/zerotier-one-install.sh b/install/zerotier-one-install.sh index 25447d3e6..616c0c430 100644 --- a/install/zerotier-one-install.sh +++ b/install/zerotier-one-install.sh @@ -13,10 +13,6 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt-get install -y gnupg -msg_ok "Installed Dependencies" - msg_info "Setting up Zerotier-One" curl -fsSL 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/main/doc/contact%40zerotier.com.gpg' | gpg --import && if z="$(curl -fsSL 'https://install.zerotier.com/' | gpg)"; then diff --git a/install/zigbee2mqtt-install.sh b/install/zigbee2mqtt-install.sh index 578890668..3fda538ce 100644 --- a/install/zigbee2mqtt-install.sh +++ b/install/zigbee2mqtt-install.sh @@ -28,7 +28,7 @@ msg_info "Setting up Zigbee2MQTT" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/Koenkk/zigbee2mqtt/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/Koenkk/zigbee2mqtt/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/Koenkk/zigbee2mqtt/archive/refs/tags/${RELEASE}.zip") -unzip -q ${RELEASE}.zip +$STD unzip ${RELEASE}.zip mv zigbee2mqtt-${RELEASE} /opt/zigbee2mqtt cd /opt/zigbee2mqtt/data mv configuration.example.yaml configuration.yaml diff --git a/install/zipline-install.sh b/install/zipline-install.sh index 1289b6db6..4c02abe67 100644 --- a/install/zipline-install.sh +++ b/install/zipline-install.sh @@ -45,7 +45,7 @@ msg_info "Installing Zipline (Patience)" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/diced/zipline/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') curl -fsSL "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip") -unzip -q v"${RELEASE}".zip +$STD unzip v"${RELEASE}".zip mv zipline-"${RELEASE}" /opt/zipline cd /opt/zipline cat </opt/zipline/.env diff --git a/install/zwave-js-ui-install.sh b/install/zwave-js-ui-install.sh index 7c7d3b7a3..50a324d9c 100644 --- a/install/zwave-js-ui-install.sh +++ b/install/zwave-js-ui-install.sh @@ -19,7 +19,7 @@ mkdir -p /opt/zwave_store cd /opt/zwave-js-ui RELEASE=$(curl -fsSL https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip" -o $(basename "https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip") -unzip -q zwave-js-ui-${RELEASE}-linux.zip +$STD unzip zwave-js-ui-${RELEASE}-linux.zip cat </opt/.env ZWAVEJS_EXTERNAL_CONFIG=/opt/zwave_store/.config-db STORE_DIR=/opt/zwave_store