From 8b66c8a9dc79fe39dea8c3712b43ac5c57a6587e Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 1 Apr 2025 10:58:29 +0200 Subject: [PATCH] fix basename -o --- ct/authelia.sh | 2 +- ct/autobrr.sh | 2 +- ct/baikal.sh | 2 +- ct/barcode-buddy.sh | 2 +- ct/bookstack.sh | 2 +- ct/cockpit.sh | 6 +++--- ct/commafeed.sh | 2 +- ct/crafty-controller.sh | 2 +- ct/cryptpad.sh | 2 +- ct/duplicati.sh | 2 +- ct/firefly.sh | 2 +- ct/flaresolverr.sh | 2 +- ct/gitea.sh | 2 +- ct/glance.sh | 2 +- ct/go2rtc.sh | 2 +- ct/gotify.sh | 2 +- ct/grist.sh | 2 +- ct/headscale.sh | 2 +- ct/heimdall-dashboard.sh | 2 +- ct/hoarder.sh | 2 +- ct/homarr.sh | 2 +- ct/homer.sh | 2 +- ct/inspircd.sh | 2 +- ct/jackett.sh | 2 +- ct/keycloak.sh | 2 +- ct/kimai.sh | 2 +- ct/koillection.sh | 2 +- ct/komga.sh | 2 +- ct/kubo.sh | 2 +- ct/linkwarden.sh | 2 +- ct/listmonk.sh | 2 +- ct/lubelogger.sh | 2 +- ct/mafl.sh | 2 +- ct/minio.sh | 2 +- ct/monica.sh | 2 +- ct/myspeed.sh | 2 +- ct/netbox.sh | 2 +- ct/nextpvr.sh | 2 +- ct/ombi.sh | 2 +- ct/onedev.sh | 2 +- ct/opengist.sh | 2 +- ct/paperless-ai.sh | 2 +- ct/paperless-ngx.sh | 4 ++-- ct/part-db.sh | 2 +- ct/pelican-panel.sh | 2 +- ct/pf2etools.sh | 2 +- ct/photoprism.sh | 2 +- ct/phpipam.sh | 2 +- ct/pingvin.sh | 2 +- ct/plant-it.sh | 2 +- ct/pocketid.sh | 2 +- ct/privatebin.sh | 2 +- ct/projectsend.sh | 2 +- ct/prometheus-alertmanager.sh | 2 +- ct/prometheus-paperless-ngx-exporter.sh | 2 +- ct/prometheus.sh | 2 +- ct/pterodactyl-panel.sh | 2 +- ct/rdtclient.sh | 2 +- ct/recyclarr.sh | 2 +- ct/rustdeskserver.sh | 6 +++--- ct/seelf.sh | 2 +- ct/semaphore.sh | 2 +- ct/silverbullet.sh | 2 +- ct/spoolman.sh | 2 +- ct/stirling-pdf.sh | 2 +- ct/suwayomiserver.sh | 2 +- ct/tasmocompiler.sh | 2 +- ct/technitiumdns.sh | 2 +- ct/teddycloud.sh | 2 +- ct/the-lounge.sh | 2 +- ct/tianji.sh | 2 +- ct/traefik.sh | 2 +- ct/trilium.sh | 2 +- ct/victoriametrics.sh | 4 ++-- ct/vikunja.sh | 2 +- ct/wallos.sh | 2 +- ct/watchyourlan.sh | 2 +- ct/wavelog.sh | 2 +- ct/wikijs.sh | 2 +- ct/zabbix.sh | 2 +- ct/zigbee2mqtt.sh | 2 +- ct/zipline.sh | 2 +- ct/zoraxy.sh | 2 +- ct/zwave-js-ui.sh | 2 +- install/2fauth-install.sh | 2 +- install/actualbudget-install.sh | 2 +- install/adventurelog-install.sh | 2 +- install/agentdvr-install.sh | 2 +- install/apache-guacamole-install.sh | 4 ++-- install/apache-tika-install.sh | 2 +- install/aria2-install.sh | 2 +- install/authelia-install.sh | 2 +- install/authentik-install.sh | 2 +- install/autobrr-install.sh | 2 +- install/baikal-install.sh | 2 +- install/barcode-buddy-install.sh | 2 +- install/bazarr-install.sh | 2 +- install/bookstack-install.sh | 2 +- install/caddy-install.sh | 2 +- install/commafeed-install.sh | 4 ++-- install/cosmos-install.sh | 2 +- install/crafty-controller-install.sh | 2 +- install/duplicati-install.sh | 2 +- install/emby-install.sh | 2 +- install/ersatztv-install.sh | 2 +- install/fenrus-install.sh | 2 +- install/firefly-install.sh | 2 +- install/freshrss-install.sh | 2 +- install/frigate-install.sh | 2 +- install/gitea-install.sh | 2 +- install/glance-install.sh | 2 +- install/glpi-install.sh | 2 +- install/go2rtc-install.sh | 2 +- install/gokapi-install.sh | 2 +- install/gotify-install.sh | 2 +- install/graylog-install.sh | 2 +- install/grist-install.sh | 2 +- install/grocy-install.sh | 2 +- install/habitica-install.sh | 2 +- install/headscale-install.sh | 2 +- install/heimdall-dashboard-install.sh | 2 +- install/hivemq-install.sh | 2 +- install/hoarder-install.sh | 4 ++-- install/homarr-install.sh | 2 +- install/homer-install.sh | 2 +- install/influxdb-install.sh | 2 +- install/inspircd-install.sh | 2 +- install/iventoy-install.sh | 2 +- install/jackett-install.sh | 2 +- install/kimai-install.sh | 2 +- install/koillection-install.sh | 2 +- install/komga-install.sh | 2 +- install/komodo-install.sh | 2 +- install/linkwarden-install.sh | 2 +- install/listmonk-install.sh | 2 +- install/lubelogger-install.sh | 2 +- install/mafl-install.sh | 2 +- install/mariadb-install.sh | 2 +- install/mediamtx-install.sh | 2 +- install/minio-install.sh | 2 +- install/monica-install.sh | 2 +- install/myspeed-install.sh | 2 +- install/mysql-install.sh | 2 +- install/netbox-install.sh | 2 +- install/nextpvr-install.sh | 2 +- install/nodebb-install.sh | 2 +- install/npmplus-install.sh | 2 +- install/omada-install.sh | 2 +- install/ombi-install.sh | 2 +- install/onedev-install.sh | 2 +- install/opengist-install.sh | 2 +- install/openhab-install.sh | 2 +- install/owncast-install.sh | 2 +- install/paperless-ai-install.sh | 2 +- install/paperless-ngx-install.sh | 2 +- install/part-db-install.sh | 2 +- install/paymenter-install.sh | 2 +- install/pelican-panel-install.sh | 2 +- install/pf2etools-install.sh | 2 +- install/photoprism-install.sh | 4 ++-- install/phpipam-install.sh | 2 +- install/pingvin-install.sh | 2 +- install/plant-it-install.sh | 4 ++-- install/pocketid-install.sh | 2 +- install/privatebin-install.sh | 2 +- install/projectsend-install.sh | 2 +- install/prometheus-alertmanager-install.sh | 2 +- install/prometheus-install.sh | 2 +- install/prometheus-paperless-ngx-exporter-install.sh | 2 +- install/pterodactyl-panel-install.sh | 2 +- install/rdtclient-install.sh | 4 ++-- install/recyclarr-install.sh | 2 +- install/runtipi-install.sh | 2 +- install/rustdeskserver-install.sh | 6 +++--- install/seelf-install.sh | 2 +- install/semaphore-install.sh | 2 +- install/silverbullet-install.sh | 2 +- install/spoolman-install.sh | 2 +- install/stirling-pdf-install.sh | 4 ++-- install/suwayomiserver-install.sh | 2 +- install/tasmoadmin-install.sh | 2 +- install/tdarr-install.sh | 2 +- install/teddycloud-install.sh | 2 +- install/the-lounge-install.sh | 2 +- install/tianji-install.sh | 2 +- install/traccar-install.sh | 2 +- install/traefik-install.sh | 2 +- install/trilium-install.sh | 2 +- install/typesense-install.sh | 2 +- install/unifi-install.sh | 2 +- install/victoriametrics-install.sh | 4 ++-- install/vikunja-install.sh | 2 +- install/wallos-install.sh | 2 +- install/watchyourlan-install.sh | 2 +- install/wavelog-install.sh | 2 +- install/wger-install.sh | 2 +- install/wordpress-install.sh | 2 +- install/zabbix-install.sh | 2 +- install/zigbee2mqtt-install.sh | 2 +- install/zipline-install.sh | 2 +- install/zoraxy-install.sh | 2 +- install/zwave-js-ui-install.sh | 2 +- misc/microcode.sh | 4 ++-- misc/netdata.sh | 2 +- misc/olivetin.sh | 2 +- misc/pbs_microcode.sh | 4 ++-- misc/webmin.sh | 2 +- 207 files changed, 225 insertions(+), 225 deletions(-) diff --git a/ct/authelia.sh b/ct/authelia.sh index c9f9e9bf7..11d3acb05 100644 --- a/ct/authelia.sh +++ b/ct/authelia.sh @@ -34,7 +34,7 @@ function update_script() { msg_info "Updating $APP to ${RELEASE}" $STD apt-get update $STD apt-get -y upgrade - curl -fsSL "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb" -o $(basename"https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb") + curl -fsSL "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb" -o $(basename "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb") $STD dpkg -i "authelia_${RELEASE}_amd64.deb" msg_info "Cleaning Up" rm -f "authelia_${RELEASE}_amd64.deb" diff --git a/ct/autobrr.sh b/ct/autobrr.sh index cdeb2b920..7da6af312 100644 --- a/ct/autobrr.sh +++ b/ct/autobrr.sh @@ -33,7 +33,7 @@ function update_script() { msg_info "Updating ${APP} LXC" rm -rf /usr/local/bin/* - curl -fsSL "$(curl -fsSL https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4)" -o $(basename"$(curl -fsSL https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4)") + curl -fsSL "$(curl -fsSL https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4)") tar -C /usr/local/bin -xzf autobrr*.tar.gz rm -rf autobrr*.tar.gz msg_ok "Updated ${APP} LXC" diff --git a/ct/baikal.sh b/ct/baikal.sh index f5613e757..92fed5849 100644 --- a/ct/baikal.sh +++ b/ct/baikal.sh @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" 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") + 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" cp -r /opt/baikal-backup/config/baikal.yaml /opt/baikal/config/ diff --git a/ct/barcode-buddy.sh b/ct/barcode-buddy.sh index eede997fb..306610d31 100644 --- a/ct/barcode-buddy.sh +++ b/ct/barcode-buddy.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" 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") + 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" mv "/opt/barcodebuddy-${RELEASE}" /opt/barcodebuddy cp -r /opt/barcodebuddy-backup/data/. /opt/barcodebuddy/data diff --git a/ct/bookstack.sh b/ct/bookstack.sh index b843c738e..618b40d37 100644 --- a/ct/bookstack.sh +++ b/ct/bookstack.sh @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" mv /opt/bookstack /opt/bookstack-backup -curl -fsSL "--directory-prefix=/opt "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o $(basename"--directory-prefix=/opt "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip") +curl -fsSL "--directory-prefix=/opt "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o $(basename "--directory-prefix=/opt "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip") unzip -q /opt/v${RELEASE}.zip -d /opt mv /opt/BookStack-${RELEASE} /opt/bookstack cp /opt/bookstack-backup/.env /opt/bookstack/.env diff --git a/ct/cockpit.sh b/ct/cockpit.sh index 76d8fe70f..1d31618cd 100644 --- a/ct/cockpit.sh +++ b/ct/cockpit.sh @@ -51,7 +51,7 @@ function update_script() { $STD apt-get install -y gawk msg_ok "Installed dependencies" msg_info "Installing Cockpit file sharing" - curl -fsSL "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)" -o $(basename"$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)") + curl -fsSL "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)") $STD dpkg -i cockpit-file-sharing_*focal_all.deb rm cockpit-file-sharing_*focal_all.deb msg_ok "Installed Cockpit file sharing" @@ -64,7 +64,7 @@ function update_script() { $STD apt-get install -y samba-common-bin msg_ok "Installed dependencies" msg_info "Installing Cockpit identities" - curl -fsSL "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)" -o $(basename"$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)") + curl -fsSL "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)") $STD dpkg -i cockpit-identities_*focal_all.deb rm cockpit-identities_*focal_all.deb msg_ok "Installed Cockpit identities" @@ -76,7 +76,7 @@ function update_script() { $STD apt-get install -y zip msg_ok "Installed dependencies" msg_info "Installing Cockpit navigator" - curl -fsSL "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)" -o $(basename"$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)") + curl -fsSL "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4)") $STD dpkg -i cockpit-navigator_*focal_all.deb rm cockpit-navigator_*focal_all.deb msg_ok "Installed Cockpit navigator" diff --git a/ct/commafeed.sh b/ct/commafeed.sh index 1d0c018b7..7ac99e0a4 100644 --- a/ct/commafeed.sh +++ b/ct/commafeed.sh @@ -34,7 +34,7 @@ function update_script() { msg_ok "Stopped ${APP}" 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") + 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 rsync -a --exclude 'data/' commafeed-${RELEASE}-h2/ /opt/commafeed/ rm -rf commafeed-${RELEASE}-h2 commafeed-${RELEASE}-h2-jvm.zip diff --git a/ct/crafty-controller.sh b/ct/crafty-controller.sh index ad2b40c2e..ce4058676 100644 --- a/ct/crafty-controller.sh +++ b/ct/crafty-controller.sh @@ -45,7 +45,7 @@ function update_script() { msg_ok "Backup Created" 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") + 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 cp -a crafty-4-v${RELEASE}/. /opt/crafty-controller/crafty/crafty-4/ rm -rf crafty-4-v${RELEASE} diff --git a/ct/cryptpad.sh b/ct/cryptpad.sh index 6f5988e55..47e2564f6 100644 --- a/ct/cryptpad.sh +++ b/ct/cryptpad.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating $APP to ${RELEASE}" temp_dir=$(mktemp -d) cp -f /opt/cryptpad/config/config.js /opt/config.js -curl -fsSL "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -P $temp_dir" -o $(basename"https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -P $temp_dir") +curl -fsSL "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -P $temp_dir" -o $(basename "https://github.com/cryptpad/cryptpad/archive/refs/tags/${RELEASE}.tar.gz" -P $temp_dir") cd $temp_dir tar zxf $RELEASE.tar.gz cp -rf cryptpad-$RELEASE/* /opt/cryptpad diff --git a/ct/duplicati.sh b/ct/duplicati.sh index 3d785adfe..0596c9c80 100644 --- a/ct/duplicati.sh +++ b/ct/duplicati.sh @@ -33,7 +33,7 @@ function update_script() { systemctl stop duplicati msg_ok "Stopped $APP" msg_info "Updating $APP to v${RELEASE}" - curl -fsSL "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb" -o $(basename"https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb") + curl -fsSL "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb" -o $(basename "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb") $STD dpkg -i duplicati-${RELEASE}-linux-x64-gui.deb echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" diff --git a/ct/firefly.sh b/ct/firefly.sh index b0583745a..9ea67fc48 100644 --- a/ct/firefly.sh +++ b/ct/firefly.sh @@ -38,7 +38,7 @@ function update_script() { cp /opt/firefly/.env /opt/.env cp -r /opt/firefly/storage /opt/storage cd /opt - curl -fsSL "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz" -o $(basename"https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz") + curl -fsSL "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz" -o $(basename "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz") tar -xzf FireflyIII-v${RELEASE}.tar.gz -C /opt/firefly --exclude='storage' cp /opt/.env /opt/firefly/.env cp -r /opt/storage /opt/firefly/storage diff --git a/ct/flaresolverr.sh b/ct/flaresolverr.sh index 0801f44e2..2e871f006 100644 --- a/ct/flaresolverr.sh +++ b/ct/flaresolverr.sh @@ -31,7 +31,7 @@ function update_script() { if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then msg_info "Updating $APP LXC" systemctl stop flaresolverr - curl -fsSL "https://github.com/FlareSolverr/FlareSolverr/releases/download/$RELEASE/flaresolverr_linux_x64.tar.gz" -o $(basename"https://github.com/FlareSolverr/FlareSolverr/releases/download/$RELEASE/flaresolverr_linux_x64.tar.gz") + curl -fsSL "https://github.com/FlareSolverr/FlareSolverr/releases/download/$RELEASE/flaresolverr_linux_x64.tar.gz" -o $(basename "https://github.com/FlareSolverr/FlareSolverr/releases/download/$RELEASE/flaresolverr_linux_x64.tar.gz") tar -xzf flaresolverr_linux_x64.tar.gz -C /opt rm flaresolverr_linux_x64.tar.gz systemctl start flaresolverr diff --git a/ct/gitea.sh b/ct/gitea.sh index bf2c61b75..955fbfad5 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -29,7 +29,7 @@ function update_script() { fi RELEASE=$(curl -fsSL https://github.com/go-gitea/gitea/releases/latest | grep "title>Release" | cut -d " " -f 4 | sed 's/^v//') msg_info "Updating $APP to ${RELEASE}" - curl -fsSL "https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64" -o $(basename"https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64") + curl -fsSL "https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64" -o $(basename "https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64") systemctl stop gitea rm -rf /usr/local/bin/gitea mv gitea* /usr/local/bin/gitea diff --git a/ct/glance.sh b/ct/glance.sh index 1ba07e38f..216c17803 100644 --- a/ct/glance.sh +++ b/ct/glance.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt - curl -fsSL "https://github.com/glanceapp/glance/releases/download/v${RELEASE}/glance-linux-amd64.tar.gz" -o $(basename"https://github.com/glanceapp/glance/releases/download/v${RELEASE}/glance-linux-amd64.tar.gz") + curl -fsSL "https://github.com/glanceapp/glance/releases/download/v${RELEASE}/glance-linux-amd64.tar.gz" -o $(basename "https://github.com/glanceapp/glance/releases/download/v${RELEASE}/glance-linux-amd64.tar.gz") rm -rf /opt/glance/glance tar -xzf glance-linux-amd64.tar.gz -C /opt/glance echo "${RELEASE}" >"/opt/${APP}_version.txt" diff --git a/ct/go2rtc.sh b/ct/go2rtc.sh index d25f5dcee..cdad074bd 100644 --- a/ct/go2rtc.sh +++ b/ct/go2rtc.sh @@ -31,7 +31,7 @@ function update_script() { systemctl stop go2rtc cd /opt/go2rtc rm go2rtc_linux_amd64 - curl -fsSL "https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64" -o $(basename"https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64") + curl -fsSL "https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64" -o $(basename "https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64") chmod +x go2rtc_linux_amd64 systemctl start go2rtc msg_ok "Updated $APP" diff --git a/ct/gotify.sh b/ct/gotify.sh index 1cebc2a38..aeb2a80b3 100644 --- a/ct/gotify.sh +++ b/ct/gotify.sh @@ -36,7 +36,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") + 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 rm -rf gotify-linux-amd64.zip chmod +x gotify-linux-amd64 diff --git a/ct/grist.sh b/ct/grist.sh index abbe8e872..95e0dc98c 100644 --- a/ct/grist.sh +++ b/ct/grist.sh @@ -38,7 +38,7 @@ function update_script() { cd /opt 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") + 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 mv grist-core-${RELEASE} grist diff --git a/ct/headscale.sh b/ct/headscale.sh index 87a467b8e..66443d44a 100644 --- a/ct/headscale.sh +++ b/ct/headscale.sh @@ -34,7 +34,7 @@ function update_script() { msg_ok "Stopped ${APP}" msg_info "Updating $APP to v${RELEASE}" - curl -fsSL "https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb" -o $(basename"https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb") + curl -fsSL "https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb" -o $(basename "https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb") dpkg -i headscale_${RELEASE}_linux_amd64.deb rm headscale_${RELEASE}_linux_amd64.deb echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/heimdall-dashboard.sh b/ct/heimdall-dashboard.sh index 7799ff275..fa4765014 100644 --- a/ct/heimdall-dashboard.sh +++ b/ct/heimdall-dashboard.sh @@ -39,7 +39,7 @@ function update_script() { sleep 1 msg_ok "Backed up Data" msg_info "Updating Heimdall Dashboard to ${RELEASE}" - curl -fsSL "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" -o $(basename"https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz") + curl -fsSL "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" -o $(basename "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz") tar xzf ${RELEASE}.tar.gz VER=$(curl -fsSL https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cp -R Heimdall-${VER}/* /opt/Heimdall diff --git a/ct/hoarder.sh b/ct/hoarder.sh index 788969db3..34896f8aa 100644 --- a/ct/hoarder.sh +++ b/ct/hoarder.sh @@ -46,7 +46,7 @@ function update_script() { mv /opt/hoarder/.env /etc/hoarder/hoarder.env fi rm -rf /opt/hoarder - curl -fsSL "https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip" -o $(basename"https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip") + curl -fsSL "https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip") unzip -q v${RELEASE}.zip mv hoarder-${RELEASE} /opt/hoarder cd /opt/hoarder/apps/web diff --git a/ct/homarr.sh b/ct/homarr.sh index a91eb788b..c5a4c8b82 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -117,7 +117,7 @@ node apps/nextjs/server.js & PID=$! wait $PID EOF chmod +x /opt/run_homarr.sh -curl -fsSL "https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE}.zip" -o $(basename"https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE}.zip") +curl -fsSL "https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE}.zip") unzip -q v${RELEASE}.zip rm -rf v${RELEASE}.zip rm -rf /opt/homarr diff --git a/ct/homer.sh b/ct/homer.sh index 23e7c8746..69ba25960 100644 --- a/ct/homer.sh +++ b/ct/homer.sh @@ -40,7 +40,7 @@ function update_script() { msg_info "Updating ${APP}" rm -rf /opt/homer/* cd /opt/homer - curl -fsSL "https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip" -o $(basename"https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip") + curl -fsSL "https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip" -o $(basename "https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip") $STD unzip homer.zip msg_ok "Updated ${APP}" diff --git a/ct/inspircd.sh b/ct/inspircd.sh index f1c8ccfd7..9f99287e9 100644 --- a/ct/inspircd.sh +++ b/ct/inspircd.sh @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt - curl -fsSL "https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb" -o $(basename"https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb") + curl -fsSL "https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb" -o $(basename "https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb") $STD apt-get install "./inspircd_${RELEASE}.deb12u1_amd64.deb" -y echo "${RELEASE}" >"/opt/${APP}_version.txt" msg_ok "Updated ${APP} to v${RELEASE}" diff --git a/ct/jackett.sh b/ct/jackett.sh index 11257786d..e75fbbd4f 100644 --- a/ct/jackett.sh +++ b/ct/jackett.sh @@ -30,7 +30,7 @@ function update_script() { RELEASE=$(curl -fsSL https://github.com/Jackett/Jackett/releases/latest | grep "title>Release" | cut -d " " -f 4) if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating ${APP}" - curl -fsSL "https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz" -o $(basename"https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz") + curl -fsSL "https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz" -o $(basename "https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz") systemctl stop jackett rm -rf /opt/Jackett tar -xzf Jackett.Binaries.LinuxAMDx64.tar.gz -C /opt diff --git a/ct/keycloak.sh b/ct/keycloak.sh index 4ecf90a50..4d9880b0a 100644 --- a/ct/keycloak.sh +++ b/ct/keycloak.sh @@ -36,7 +36,7 @@ function update_script() { RELEASE=$(curl -fsSL https://api.github.com/repos/keycloak/keycloak/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') msg_info "Updating Keycloak to v$RELEASE" cd /opt - curl -fsSL "https://github.com/keycloak/keycloak/releases/download/$RELEASE/keycloak-$RELEASE.tar.gz" -o $(basename"https://github.com/keycloak/keycloak/releases/download/$RELEASE/keycloak-$RELEASE.tar.gz") + curl -fsSL "https://github.com/keycloak/keycloak/releases/download/$RELEASE/keycloak-$RELEASE.tar.gz" -o $(basename "https://github.com/keycloak/keycloak/releases/download/$RELEASE/keycloak-$RELEASE.tar.gz") mv keycloak keycloak.old tar -xzf keycloak-$RELEASE.tar.gz cp -r keycloak.old/conf keycloak-$RELEASE diff --git a/ct/kimai.sh b/ct/kimai.sh index 61b6850aa..b88b47b7e 100644 --- a/ct/kimai.sh +++ b/ct/kimai.sh @@ -44,7 +44,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" rm -rf /opt/kimai - curl -fsSL "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip" -o $(basename"https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip") + 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 mv kimai-${RELEASE} /opt/kimai [ -d "$BACKUP_DIR/var" ] && cp -r "$BACKUP_DIR/var" /opt/kimai/ diff --git a/ct/koillection.sh b/ct/koillection.sh index e77711d3d..c25730954 100644 --- a/ct/koillection.sh +++ b/ct/koillection.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" 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") + 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" mv "/opt/koillection-${RELEASE}" /opt/koillection cd /opt/koillection diff --git a/ct/komga.sh b/ct/komga.sh index 73c2c7451..79a166262 100644 --- a/ct/komga.sh +++ b/ct/komga.sh @@ -35,7 +35,7 @@ function update_script() { msg_ok "Stopped ${APP}" msg_info "Updating ${APP} to ${RELEASE}" - curl -fsSL "https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar" -o $(basename"https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar") + curl -fsSL "https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar" -o $(basename "https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar") rm -rf /opt/komga/komga.jar mv -f komga-${RELEASE}.jar /opt/komga/komga.jar echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/kubo.sh b/ct/kubo.sh index f83006c2f..4de0510cd 100644 --- a/ct/kubo.sh +++ b/ct/kubo.sh @@ -32,7 +32,7 @@ function update_script() { msg_info "Updating $APP LXC" $STD apt-get update $STD apt-get -y upgrade - curl -fsSL "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz" -o $(basename"https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz") + curl -fsSL "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz" -o $(basename "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz") tar -xzf "kubo_${RELEASE}_linux-amd64.tar.gz" -C /usr/local systemctl restart ipfs.service echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/linkwarden.sh b/ct/linkwarden.sh index 9ed317285..7850becac 100644 --- a/ct/linkwarden.sh +++ b/ct/linkwarden.sh @@ -46,7 +46,7 @@ function update_script() { mv /opt/linkwarden/.env /opt/.env rm -rf /opt/linkwarden RELEASE=$(curl -fsSL https://api.github.com/repos/linkwarden/linkwarden/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - curl -fsSL "https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip" -o $(basename"https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip") + curl -fsSL "https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip") unzip -q ${RELEASE}.zip mv linkwarden-${RELEASE:1} /opt/linkwarden cd /opt/linkwarden diff --git a/ct/listmonk.sh b/ct/listmonk.sh index e6b7acef4..2e6589a1a 100644 --- a/ct/listmonk.sh +++ b/ct/listmonk.sh @@ -38,7 +38,7 @@ function update_script() { cd /opt mv /opt/listmonk/ /opt/listmonk-backup mkdir /opt/listmonk/ - curl -fsSL "https://github.com/knadh/listmonk/releases/download/v${RELEASE}/listmonk_${RELEASE}_linux_amd64.tar.gz" -o $(basename"https://github.com/knadh/listmonk/releases/download/v${RELEASE}/listmonk_${RELEASE}_linux_amd64.tar.gz") + curl -fsSL "https://github.com/knadh/listmonk/releases/download/v${RELEASE}/listmonk_${RELEASE}_linux_amd64.tar.gz" -o $(basename "https://github.com/knadh/listmonk/releases/download/v${RELEASE}/listmonk_${RELEASE}_linux_amd64.tar.gz") tar -xzf "listmonk_${RELEASE}_linux_amd64.tar.gz" -C /opt/listmonk mv /opt/listmonk-backup/config.toml /opt/listmonk/config.toml mv /opt/listmonk-backup/uploads /opt/listmonk/uploads diff --git a/ct/lubelogger.sh b/ct/lubelogger.sh index 7c296de40..d00c246e0 100644 --- a/ct/lubelogger.sh +++ b/ct/lubelogger.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt - 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") + 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") mkdir -p /tmp/lubeloggerData/data cp /opt/lubelogger/appsettings.json /tmp/lubeloggerData/appsettings.json cp -r /opt/lubelogger/data/ /tmp/lubeloggerData/ diff --git a/ct/mafl.sh b/ct/mafl.sh index 94d5905e3..9c92c23b9 100644 --- a/ct/mafl.sh +++ b/ct/mafl.sh @@ -30,7 +30,7 @@ function update_script() { RELEASE=$(curl -fsSL https://api.github.com/repos/hywax/mafl/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Updating Mafl to v${RELEASE} (Patience)" systemctl stop mafl - curl -fsSL "https://github.com/hywax/mafl/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename"https://github.com/hywax/mafl/archive/refs/tags/v${RELEASE}.tar.gz") + curl -fsSL "https://github.com/hywax/mafl/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/hywax/mafl/archive/refs/tags/v${RELEASE}.tar.gz") tar -xzf v${RELEASE}.tar.gz cp -r mafl-${RELEASE}/* /opt/mafl/ rm -rf mafl-${RELEASE} diff --git a/ct/minio.sh b/ct/minio.sh index 1907805a6..08a5fbec3 100644 --- a/ct/minio.sh +++ b/ct/minio.sh @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" mv /usr/local/bin/minio /usr/local/bin/minio_bak - curl -fsSL "https://dl.min.io/server/minio/release/linux-amd64/minio" -o $(basename"https://dl.min.io/server/minio/release/linux-amd64/minio") + curl -fsSL "https://dl.min.io/server/minio/release/linux-amd64/minio" -o $(basename "https://dl.min.io/server/minio/release/linux-amd64/minio") mv minio /usr/local/bin/ chmod +x /usr/local/bin/minio echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/monica.sh b/ct/monica.sh index c095d5f4e..17d861682 100644 --- a/ct/monica.sh +++ b/ct/monica.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt mv /opt/monica/ /opt/monica-backup - curl -fsSL "https://github.com/monicahq/monica/releases/download/v${RELEASE}/monica-v${RELEASE}.tar.bz2" -o $(basename"https://github.com/monicahq/monica/releases/download/v${RELEASE}/monica-v${RELEASE}.tar.bz2") + curl -fsSL "https://github.com/monicahq/monica/releases/download/v${RELEASE}/monica-v${RELEASE}.tar.bz2" -o $(basename "https://github.com/monicahq/monica/releases/download/v${RELEASE}/monica-v${RELEASE}.tar.bz2") tar -xjf "monica-v${RELEASE}.tar.bz2" mv "/opt/monica-v${RELEASE}" /opt/monica cd /opt/monica/ diff --git a/ct/myspeed.sh b/ct/myspeed.sh index 6ec636a78..8a7487cc7 100644 --- a/ct/myspeed.sh +++ b/ct/myspeed.sh @@ -38,7 +38,7 @@ function update_script() { cd /opt 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") + 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 cd myspeed $STD npm install diff --git a/ct/netbox.sh b/ct/netbox.sh index f76bb713f..3f9b85fe9 100644 --- a/ct/netbox.sh +++ b/ct/netbox.sh @@ -38,7 +38,7 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}" 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") + 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" mv /opt/netbox-${RELEASE}/ /opt/netbox/ diff --git a/ct/nextpvr.sh b/ct/nextpvr.sh index 40d556155..271ca9fd9 100644 --- a/ct/nextpvr.sh +++ b/ct/nextpvr.sh @@ -39,7 +39,7 @@ function update_script() { msg_info "Updating ${APP}" cd /opt - curl -fsSL "https://nextpvr.com/nextpvr-helper.deb" -o $(basename"https://nextpvr.com/nextpvr-helper.deb") + curl -fsSL "https://nextpvr.com/nextpvr-helper.deb" -o $(basename "https://nextpvr.com/nextpvr-helper.deb") $STD dpkg -i nextpvr-helper.deb msg_ok "Updated ${APP}" diff --git a/ct/ombi.sh b/ct/ombi.sh index 6d8589001..359f5fe8c 100644 --- a/ct/ombi.sh +++ b/ct/ombi.sh @@ -34,7 +34,7 @@ function update_script() { msg_ok "Stopped ${APP}" msg_info "Updating ${APP} to ${RELEASE}" - curl -fsSL "https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz" -o $(basename"https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz") + curl -fsSL "https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz" -o $(basename "https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz") tar -xzf linux-x64.tar.gz -C /opt/ombi rm -rf linux-x64.tar.gz echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/onedev.sh b/ct/onedev.sh index d2fafcb72..d34bfcaa9 100644 --- a/ct/onedev.sh +++ b/ct/onedev.sh @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating ${APP} to v${GITHUB_RELEASE}" cd /opt - curl -fsSL "https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz" -o $(basename"https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz") + curl -fsSL "https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz" -o $(basename "https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz") tar -xzf onedev-latest.tar.gz $STD /opt/onedev-latest/bin/upgrade.sh /opt/onedev RELEASE=$(cat /opt/onedev/release.properties | grep "version" | cut -d'=' -f2) diff --git a/ct/opengist.sh b/ct/opengist.sh index e13640ea8..d1b57c315 100644 --- a/ct/opengist.sh +++ b/ct/opengist.sh @@ -38,7 +38,7 @@ function update_script() { $STD apt-get -y upgrade cd /opt mv /opt/opengist /opt/opengist-backup - curl -fsSL "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz" -o $(basename"https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz") + curl -fsSL "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz" -o $(basename "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz") tar -xzf opengist${RELEASE}-linux-amd64.tar.gz mv /opt/opengist-backup/config.yml /opt/opengist/config.yml chmod +x /opt/opengist/opengist diff --git a/ct/paperless-ai.sh b/ct/paperless-ai.sh index 3cf8dc1ee..2f1ebda43 100644 --- a/ct/paperless-ai.sh +++ b/ct/paperless-ai.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}" 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") + 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 mv paperless-ai-${RELEASE} /opt/paperless-ai mkdir -p /opt/paperless-ai/data diff --git a/ct/paperless-ngx.sh b/ct/paperless-ngx.sh index 24fcdb631..7566dfbc0 100644 --- a/ct/paperless-ngx.sh +++ b/ct/paperless-ngx.sh @@ -38,7 +38,7 @@ function update_script() { if [[ "$(gs --version 2>/dev/null)" != "10.04.0" ]]; then msg_info "Updating Ghostscript (Patience)" cd /tmp - curl -fsSL "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz" -o $(basename"https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz") + curl -fsSL "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz" -o $(basename "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz") tar -xzf ghostscript-10.04.0.tar.gz cd ghostscript-10.04.0 $STD ./configure @@ -53,7 +53,7 @@ function update_script() { msg_info "Updating to ${RELEASE}" cd ~ - curl -fsSL "https://github.com/paperless-ngx/paperless-ngx/releases/download/$RELEASE/paperless-ngx-$RELEASE.tar.xz" -o $(basename"https://github.com/paperless-ngx/paperless-ngx/releases/download/$RELEASE/paperless-ngx-$RELEASE.tar.xz") + curl -fsSL "https://github.com/paperless-ngx/paperless-ngx/releases/download/$RELEASE/paperless-ngx-$RELEASE.tar.xz" -o $(basename "https://github.com/paperless-ngx/paperless-ngx/releases/download/$RELEASE/paperless-ngx-$RELEASE.tar.xz") tar -xf paperless-ngx-$RELEASE.tar.xz cp -r /opt/paperless/paperless.conf paperless-ngx/ cp -r paperless-ngx/* /opt/paperless/ diff --git a/ct/part-db.sh b/ct/part-db.sh index f0a2dcf28..b9d84255e 100644 --- a/ct/part-db.sh +++ b/ct/part-db.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}" 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") + 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" mv /opt/Part-DB-server-${RELEASE}/ /opt/partdb diff --git a/ct/pelican-panel.sh b/ct/pelican-panel.sh index f9a05b6a5..a83c50b7d 100644 --- a/ct/pelican-panel.sh +++ b/ct/pelican-panel.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cp -r /opt/pelican-panel/.env /opt/ rm -rf * .* - curl -fsSL "https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename"https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz") + curl -fsSL "https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename "https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz") tar -xzf "panel.tar.gz" mv /opt/.env /opt/pelican-panel/ $STD composer install --no-dev --optimize-autoloader --no-interaction diff --git a/ct/pf2etools.sh b/ct/pf2etools.sh index 107ffc42b..0fc8b11ce 100644 --- a/ct/pf2etools.sh +++ b/ct/pf2etools.sh @@ -38,7 +38,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") + 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 rm -rf "/opt/${APP}" mv ${APP}-${RELEASE:1} /opt/${APP} diff --git a/ct/photoprism.sh b/ct/photoprism.sh index d7214f4a4..fbda50a13 100644 --- a/ct/photoprism.sh +++ b/ct/photoprism.sh @@ -33,7 +33,7 @@ function update_script() { msg_info "Updating PhotoPrism" $STD apt-get install -y libvips42 - curl -fsSL "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xzf - -C /opt/photoprism --strip-components=1" -o $(basename"-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xzf - -C /opt/photoprism --strip-components=1") + curl -fsSL "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xzf - -C /opt/photoprism --strip-components=1" -o $(basename "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xzf - -C /opt/photoprism --strip-components=1") msg_ok "Updated PhotoPrism" msg_info "Starting PhotoPrism" diff --git a/ct/phpipam.sh b/ct/phpipam.sh index 9af2dff84..51894f806 100644 --- a/ct/phpipam.sh +++ b/ct/phpipam.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" 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") + 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" cp /opt/phpipam-backup/config.php /opt/phpipam echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/pingvin.sh b/ct/pingvin.sh index cba6cc951..0a699bd3c 100644 --- a/ct/pingvin.sh +++ b/ct/pingvin.sh @@ -37,7 +37,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") + 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 cp -rf pingvin-share-${RELEASE}/* /opt/pingvin-share cd /opt/pingvin-share diff --git a/ct/plant-it.sh b/ct/plant-it.sh index 78074210b..4e2ebddd6 100644 --- a/ct/plant-it.sh +++ b/ct/plant-it.sh @@ -38,7 +38,7 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}" curl -fsSL "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/server.jar" -o "/opt/plant-it/server.jar" cd /opt/plant-it/frontend - curl -fsSL "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/client.tar.gz" -o $(basename"https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/client.tar.gz") + curl -fsSL "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/client.tar.gz" -o $(basename "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/client.tar.gz") tar -xzf client.tar.gz rm -f client.tar.gz echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/pocketid.sh b/ct/pocketid.sh index 88fa2c659..11a106b0a 100755 --- a/ct/pocketid.sh +++ b/ct/pocketid.sh @@ -45,7 +45,7 @@ function update_script() { cp /opt/pocket-id/backend/.env /opt/backend.env cp /opt/pocket-id/frontend/.env /opt/frontend.env rm -r /opt/pocket-id - curl -fsSL "https://github.com/pocket-id/pocket-id/archive/refs/tags/v${RELEASE}.zip" -o $(basename"https://github.com/pocket-id/pocket-id/archive/refs/tags/v${RELEASE}.zip") + curl -fsSL "https://github.com/pocket-id/pocket-id/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/pocket-id/pocket-id/archive/refs/tags/v${RELEASE}.zip") unzip -q v${RELEASE}.zip mv pocket-id-${RELEASE} /opt/pocket-id mv /opt/data /opt/pocket-id/backend/data diff --git a/ct/privatebin.sh b/ct/privatebin.sh index f1d0c1fe1..81eefab40 100644 --- a/ct/privatebin.sh +++ b/ct/privatebin.sh @@ -32,7 +32,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" 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") + 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 rm -rf /opt/privatebin/* mv PrivateBin-${RELEASE}/* /opt/privatebin/ diff --git a/ct/projectsend.sh b/ct/projectsend.sh index f3dbc76e7..b40465d43 100644 --- a/ct/projectsend.sh +++ b/ct/projectsend.sh @@ -35,7 +35,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") + 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 chown -R www-data:www-data /opt/projectsend chmod -R 775 /opt/projectsend diff --git a/ct/prometheus-alertmanager.sh b/ct/prometheus-alertmanager.sh index 131600bed..51885e527 100755 --- a/ct/prometheus-alertmanager.sh +++ b/ct/prometheus-alertmanager.sh @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt - curl -fsSL "https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz" -o $(basename"https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz") + curl -fsSL "https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz" -o $(basename "https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz") tar -xf alertmanager-${RELEASE}.linux-amd64.tar.gz cp -rf alertmanager-${RELEASE}.linux-amd64/alertmanager alertmanager-${RELEASE}.linux-amd64/amtool /usr/local/bin/ rm -rf alertmanager-${RELEASE}.linux-amd64 alertmanager-${RELEASE}.linux-amd64.tar.gz diff --git a/ct/prometheus-paperless-ngx-exporter.sh b/ct/prometheus-paperless-ngx-exporter.sh index 80bd6adfc..96b4dc0c7 100755 --- a/ct/prometheus-paperless-ngx-exporter.sh +++ b/ct/prometheus-paperless-ngx-exporter.sh @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt - curl -fsSL "https://github.com/hansmi/prometheus-paperless-exporter/releases/download/v${RELEASE}/prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz" -o $(basename"https://github.com/hansmi/prometheus-paperless-exporter/releases/download/v${RELEASE}/prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz") + curl -fsSL "https://github.com/hansmi/prometheus-paperless-exporter/releases/download/v${RELEASE}/prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz" -o $(basename "https://github.com/hansmi/prometheus-paperless-exporter/releases/download/v${RELEASE}/prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz") tar -xf prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz cp -rf prometheus-paperless-exporter_${RELEASE}_linux_amd64/prometheus-paperless-exporter /usr/local/bin/ rm -rf prometheus-paperless-exporter_${RELEASE}_linux_amd64/ prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz diff --git a/ct/prometheus.sh b/ct/prometheus.sh index 20ac48918..50be5ea58 100644 --- a/ct/prometheus.sh +++ b/ct/prometheus.sh @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt - curl -fsSL "https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz" -o $(basename"https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz") + curl -fsSL "https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz" -o $(basename "https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz") tar -xf prometheus-${RELEASE}.linux-amd64.tar.gz cp -rf prometheus-${RELEASE}.linux-amd64/prometheus prometheus-${RELEASE}.linux-amd64/promtool /usr/local/bin/ rm -rf prometheus-${RELEASE}.linux-amd64 prometheus-${RELEASE}.linux-amd64.tar.gz diff --git a/ct/pterodactyl-panel.sh b/ct/pterodactyl-panel.sh index 472709678..04732c011 100644 --- a/ct/pterodactyl-panel.sh +++ b/ct/pterodactyl-panel.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cp -r /opt/pterodactyl-panel/.env /opt/ rm -rf * .* - curl -fsSL "https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename"https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz") + curl -fsSL "https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename "https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz") tar -xzf "panel.tar.gz" mv /opt/.env /opt/pterodactyl-panel/ $STD composer install --no-dev --optimize-autoloader --no-interaction diff --git a/ct/rdtclient.sh b/ct/rdtclient.sh index 8a3b0def4..cea9692c2 100755 --- a/ct/rdtclient.sh +++ b/ct/rdtclient.sh @@ -38,7 +38,7 @@ function update_script() { 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") + 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}" diff --git a/ct/recyclarr.sh b/ct/recyclarr.sh index 35be2e197..062cf7f96 100644 --- a/ct/recyclarr.sh +++ b/ct/recyclarr.sh @@ -29,7 +29,7 @@ function update_script() { fi msg_info "Updating ${APP}" - curl -fsSL "$(curl -fsSL https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)" -o $(basename"$(curl -fsSL https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)") + curl -fsSL "$(curl -fsSL https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)") tar -C /usr/local/bin -xJf recyclarr*.tar.xz rm -rf recyclarr*.tar.xz msg_ok "Updated ${APP}" diff --git a/ct/rustdeskserver.sh b/ct/rustdeskserver.sh index 8e64d29b9..34285c1ef 100644 --- a/ct/rustdeskserver.sh +++ b/ct/rustdeskserver.sh @@ -37,9 +37,9 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}" TEMPDIR=$(mktemp -d) -curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbr_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename"https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbr_${RELEASE}_amd64.deb" -P $TEMPDIR") -curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbs_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename"https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbs_${RELEASE}_amd64.deb" -P $TEMPDIR") -curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-utils_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename"https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-utils_${RELEASE}_amd64.deb" -P $TEMPDIR") +curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbr_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbr_${RELEASE}_amd64.deb" -P $TEMPDIR") +curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbs_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbs_${RELEASE}_amd64.deb" -P $TEMPDIR") +curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-utils_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-utils_${RELEASE}_amd64.deb" -P $TEMPDIR") $STD dpkg -i $TEMPDIR/*.deb msg_ok "Updated $APP to v${RELEASE}" diff --git a/ct/seelf.sh b/ct/seelf.sh index d5f0d5c9a..a27f57e9d 100644 --- a/ct/seelf.sh +++ b/ct/seelf.sh @@ -40,7 +40,7 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}. Patience" export PATH=$PATH:/usr/local/go/bin source ~/.bashrc - curl -fsSL "https://github.com/YuukanOO/seelf/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename"https://github.com/YuukanOO/seelf/archive/refs/tags/v${RELEASE}.tar.gz") + curl -fsSL "https://github.com/YuukanOO/seelf/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/YuukanOO/seelf/archive/refs/tags/v${RELEASE}.tar.gz") tar -xzf v${RELEASE}.tar.gz cp -r seelf-${RELEASE}/ /opt/seelf cd /opt/seelf diff --git a/ct/semaphore.sh b/ct/semaphore.sh index 405c98709..b35c239ca 100644 --- a/ct/semaphore.sh +++ b/ct/semaphore.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt - curl -fsSL "https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb" -o $(basename"https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb") + curl -fsSL "https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb" -o $(basename "https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb") $STD dpkg -i semaphore_${RELEASE}_linux_amd64.deb echo "${RELEASE}" >"/opt/${APP}_version.txt" msg_ok "Updated ${APP} to v${RELEASE}" diff --git a/ct/silverbullet.sh b/ct/silverbullet.sh index 701f487cc..61c9a3d43 100644 --- a/ct/silverbullet.sh +++ b/ct/silverbullet.sh @@ -33,7 +33,7 @@ function update_script() { msg_ok "Stopped ${APP}" 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") + 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 mv silverbullet /opt/silverbullet/bin/ chmod +x /opt/silverbullet/bin/silverbullet diff --git a/ct/spoolman.sh b/ct/spoolman.sh index a26f97a04..78e55ff0c 100644 --- a/ct/spoolman.sh +++ b/ct/spoolman.sh @@ -38,7 +38,7 @@ function update_script() { cd /opt 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") + 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 cd spoolman $STD pip3 install -r requirements.txt diff --git a/ct/stirling-pdf.sh b/ct/stirling-pdf.sh index fb09c20b1..f91e93249 100644 --- a/ct/stirling-pdf.sh +++ b/ct/stirling-pdf.sh @@ -34,7 +34,7 @@ function update_script() { $STD apt-get install -y qpdf fi RELEASE=$(curl -fsSL https://api.github.com/repos/Stirling-Tools/Stirling-PDF/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') - curl -fsSL "https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v$RELEASE.tar.gz" -o $(basename"https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v$RELEASE.tar.gz") + curl -fsSL "https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v$RELEASE.tar.gz" -o $(basename "https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v$RELEASE.tar.gz") tar -xzf v$RELEASE.tar.gz cd Stirling-PDF-$RELEASE chmod +x ./gradlew diff --git a/ct/suwayomiserver.sh b/ct/suwayomiserver.sh index a5d49306c..271f2af9a 100644 --- a/ct/suwayomiserver.sh +++ b/ct/suwayomiserver.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}" cd /tmp URL=$(curl -fsSL https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "browser_download_url" | awk '{print substr($2, 2, length($2)-2) }' | tail -n+2 | head -n 1) - curl -fsSL "$URL" -o $(basename"$URL") + curl -fsSL "$URL" -o $(basename "$URL") $STD dpkg -i /tmp/*.deb msg_ok "Updated $APP to v${RELEASE}" msg_info "Starting $APP" diff --git a/ct/tasmocompiler.sh b/ct/tasmocompiler.sh index 9b0294d54..066d4f049 100644 --- a/ct/tasmocompiler.sh +++ b/ct/tasmocompiler.sh @@ -36,7 +36,7 @@ function update_script() { cd /opt rm -rf /opt/tasmocompiler RELEASE=$(curl -fsSL https://api.github.com/repos/benzino77/tasmocompiler/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') - curl -fsSL "https://github.com/benzino77/tasmocompiler/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename"https://github.com/benzino77/tasmocompiler/archive/refs/tags/v${RELEASE}.tar.gz") + curl -fsSL "https://github.com/benzino77/tasmocompiler/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/benzino77/tasmocompiler/archive/refs/tags/v${RELEASE}.tar.gz") tar xzf v${RELEASE}.tar.gz mv tasmocompiler-${RELEASE}/ /opt/tasmocompiler/ cd /opt/tasmocompiler diff --git a/ct/technitiumdns.sh b/ct/technitiumdns.sh index a761dde8a..2266d132c 100644 --- a/ct/technitiumdns.sh +++ b/ct/technitiumdns.sh @@ -30,7 +30,7 @@ function update_script() { msg_info "Updating ${APP}" if ! dpkg -s aspnetcore-runtime-8.0 >/dev/null 2>&1; then - curl -fsSL "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb" -o $(basename"https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb") + curl -fsSL "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb" -o $(basename "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb") $STD dpkg -i packages-microsoft-prod.deb $STD apt-get update $STD apt-get install -y aspnetcore-runtime-8.0 diff --git a/ct/teddycloud.sh b/ct/teddycloud.sh index c27190cc5..3789e9855 100644 --- a/ct/teddycloud.sh +++ b/ct/teddycloud.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to v${VERSION}" 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") + 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 cp -R /opt/teddycloud_bak/certs /opt/teddycloud_bak/config /opt/teddycloud_bak/data /opt/teddycloud echo "${VERSION}" >"/opt/${APP}_version.txt" diff --git a/ct/the-lounge.sh b/ct/the-lounge.sh index 1daa9ccc1..8d7f8d359 100644 --- a/ct/the-lounge.sh +++ b/ct/the-lounge.sh @@ -43,7 +43,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" $STD apt-get install --only-upgrade nodejs cd /opt - curl -fsSL "https://github.com/thelounge/thelounge-deb/releases/download/v${RELEASE}/thelounge_${RELEASE}_all.deb" -o $(basename"https://github.com/thelounge/thelounge-deb/releases/download/v${RELEASE}/thelounge_${RELEASE}_all.deb") + curl -fsSL "https://github.com/thelounge/thelounge-deb/releases/download/v${RELEASE}/thelounge_${RELEASE}_all.deb" -o $(basename "https://github.com/thelounge/thelounge-deb/releases/download/v${RELEASE}/thelounge_${RELEASE}_all.deb") dpkg -i ./thelounge_${RELEASE}_all.deb msg_ok "Updated ${APP} to v${RELEASE}" diff --git a/ct/tianji.sh b/ct/tianji.sh index f757f6562..1e88b8c26 100644 --- a/ct/tianji.sh +++ b/ct/tianji.sh @@ -52,7 +52,7 @@ function update_script() { cd /opt 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") + 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 mv tianji-${RELEASE} /opt/tianji cd tianji diff --git a/ct/traefik.sh b/ct/traefik.sh index 6beb73b18..2f60c260c 100644 --- a/ct/traefik.sh +++ b/ct/traefik.sh @@ -30,7 +30,7 @@ function update_script() { RELEASE=$(curl -fsSL https://api.github.com/repos/traefik/traefik/releases | grep -oP '"tag_name":\s*"v\K[\d.]+?(?=")' | sort -V | tail -n 1) msg_info "Updating $APP LXC" if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then - curl -fsSL "https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz" -o $(basename"https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz") + curl -fsSL "https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz" -o $(basename "https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz") tar -C /tmp -xzf traefik*.tar.gz mv /tmp/traefik /usr/bin/ rm -rf traefik*.tar.gz diff --git a/ct/trilium.sh b/ct/trilium.sh index 740239f0a..30ab1de5a 100644 --- a/ct/trilium.sh +++ b/ct/trilium.sh @@ -40,7 +40,7 @@ function update_script() { mv /opt/trilium/{db,dump-db} /opt/trilium_backup/ rm -rf /opt/trilium cd /tmp - curl -fsSL "https://github.com/TriliumNext/Notes/releases/download/v${RELEASE}/TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz" -o $(basename"https://github.com/TriliumNext/Notes/releases/download/v${RELEASE}/TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz") + curl -fsSL "https://github.com/TriliumNext/Notes/releases/download/v${RELEASE}/TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz" -o $(basename "https://github.com/TriliumNext/Notes/releases/download/v${RELEASE}/TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz") tar -xf TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz mv TriliumNextNotes-Server-$RELEASE-linux-x64 /opt/trilium cp -r /opt/trilium_backup/{db,dump-db} /opt/trilium/ diff --git a/ct/victoriametrics.sh b/ct/victoriametrics.sh index 7e3590fd8..1939b2585 100644 --- a/ct/victoriametrics.sh +++ b/ct/victoriametrics.sh @@ -36,8 +36,8 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" temp_dir=$(mktemp -d) cd $temp_dir - curl -fsSL "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/victoria-metrics-linux-amd64-v${RELEASE}.tar.gz" -o $(basename"https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/victoria-metrics-linux-amd64-v${RELEASE}.tar.gz") - curl -fsSL "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/vmutils-linux-amd64-v${RELEASE}.tar.gz" -o $(basename"https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/vmutils-linux-amd64-v${RELEASE}.tar.gz") + curl -fsSL "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/victoria-metrics-linux-amd64-v${RELEASE}.tar.gz" -o $(basename "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/victoria-metrics-linux-amd64-v${RELEASE}.tar.gz") + curl -fsSL "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/vmutils-linux-amd64-v${RELEASE}.tar.gz" -o $(basename "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/vmutils-linux-amd64-v${RELEASE}.tar.gz") find /opt/victoriametrics -maxdepth 1 -type f -executable -delete tar -xf victoria-metrics-linux-amd64-v${RELEASE}.tar.gz -C /opt/victoriametrics tar -xf vmutils-linux-amd64-v${RELEASE}.tar.gz -C /opt/victoriametrics diff --git a/ct/vikunja.sh b/ct/vikunja.sh index aa153a7da..1ccfbc4d4 100644 --- a/ct/vikunja.sh +++ b/ct/vikunja.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" cd /opt rm -rf /opt/vikunja/vikunja - curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o $(basename"https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb") + curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o $(basename "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb") export DEBIAN_FRONTEND=noninteractive $STD dpkg -i vikunja-$RELEASE-amd64.deb echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/wallos.sh b/ct/wallos.sh index 0a8ef2bcb..4827a4880 100644 --- a/ct/wallos.sh +++ b/ct/wallos.sh @@ -31,7 +31,7 @@ function update_script() { if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating ${APP} to ${RELEASE}" cd /opt - 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") + 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") mkdir -p /opt/logos mv /opt/wallos/db/wallos.db /opt/wallos.db mv /opt/wallos/images/uploads/logos /opt/logos/ diff --git a/ct/watchyourlan.sh b/ct/watchyourlan.sh index b1688f640..d2c647847 100644 --- a/ct/watchyourlan.sh +++ b/ct/watchyourlan.sh @@ -31,7 +31,7 @@ function update_script() { systemctl stop watchyourlan.service cp -R /data/config.yaml config.yaml RELEASE=$(curl -fsSL https://api.github.com/repos/aceberg/WatchYourLAN/releases/latest | grep -o '"tag_name": *"[^"]*"' | cut -d '"' -f 4) - curl -fsSL "https://github.com/aceberg/WatchYourLAN/releases/download/$RELEASE/watchyourlan_${RELEASE}_linux_amd64.deb" -o $(basename"https://github.com/aceberg/WatchYourLAN/releases/download/$RELEASE/watchyourlan_${RELEASE}_linux_amd64.deb") + curl -fsSL "https://github.com/aceberg/WatchYourLAN/releases/download/$RELEASE/watchyourlan_${RELEASE}_linux_amd64.deb" -o $(basename "https://github.com/aceberg/WatchYourLAN/releases/download/$RELEASE/watchyourlan_${RELEASE}_linux_amd64.deb") dpkg -i watchyourlan_${RELEASE}_linux_amd64.deb cp -R config.yaml /data/config.yaml sed -i 's|/etc/watchyourlan/config.yaml|/data/config.yaml|' /lib/systemd/system/watchyourlan.service diff --git a/ct/wavelog.sh b/ct/wavelog.sh index f6c223a68..cee59f2b5 100644 --- a/ct/wavelog.sh +++ b/ct/wavelog.sh @@ -40,7 +40,7 @@ function update_script() { if [[ -f /opt/wavelog/assets/js/sections/custom.js ]]; then 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") + 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 rm -rf /opt/wavelog mv wavelog-${RELEASE}/ /opt/wavelog diff --git a/ct/wikijs.sh b/ct/wikijs.sh index 1a508fe1e..3f0bd723d 100644 --- a/ct/wikijs.sh +++ b/ct/wikijs.sh @@ -50,7 +50,7 @@ function update_script() { msg_info "Updating ${APP}" rm -rf /opt/wikijs/* cd /opt/wikijs - curl -fsSL "https://github.com/requarks/wiki/releases/download/v${RELEASE}/wiki-js.tar.gz" -o $(basename"https://github.com/requarks/wiki/releases/download/v${RELEASE}/wiki-js.tar.gz") + curl -fsSL "https://github.com/requarks/wiki/releases/download/v${RELEASE}/wiki-js.tar.gz" -o $(basename "https://github.com/requarks/wiki/releases/download/v${RELEASE}/wiki-js.tar.gz") tar -xzf wiki-js.tar.gz msg_ok "Updated ${APP}" diff --git a/ct/zabbix.sh b/ct/zabbix.sh index 40aa65cd9..e14b5af21 100644 --- a/ct/zabbix.sh +++ b/ct/zabbix.sh @@ -39,7 +39,7 @@ function update_script() { #cp -R /usr/share/zabbix-* /opt/zabbix-backup/ Remove temporary rm -Rf /etc/apt/sources.list.d/zabbix.list cd /tmp - curl -fsSL "https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb" -o $(basename"https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb") + curl -fsSL "https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb" -o $(basename "https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb") $STD dpkg -i zabbix-release_latest+debian12_all.deb $STD apt-get update $STD apt-get install --only-upgrade zabbix-server-pgsql zabbix-frontend-php zabbix-agent2 zabbix-agent2-plugin-* diff --git a/ct/zigbee2mqtt.sh b/ct/zigbee2mqtt.sh index 8db102a06..1bdca547d 100644 --- a/ct/zigbee2mqtt.sh +++ b/ct/zigbee2mqtt.sh @@ -46,7 +46,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") + 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 rm -rf /opt/zigbee2mqtt mv zigbee2mqtt-${RELEASE} /opt/zigbee2mqtt diff --git a/ct/zipline.sh b/ct/zipline.sh index c4b7d3d6c..a453b98a0 100644 --- a/ct/zipline.sh +++ b/ct/zipline.sh @@ -41,7 +41,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" cp /opt/zipline/.env /opt/ rm -R /opt/zipline - 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") + 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 mv zipline-${RELEASE} /opt/zipline cd /opt/zipline diff --git a/ct/zoraxy.sh b/ct/zoraxy.sh index 89e807f0e..abd4395d5 100644 --- a/ct/zoraxy.sh +++ b/ct/zoraxy.sh @@ -31,7 +31,7 @@ function update_script() { if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating $APP to ${RELEASE}" systemctl stop zoraxy - curl -fsSL "https://github.com/tobychui/zoraxy/releases/download/${RELEASE}/zoraxy_linux_amd64" -o $(basename"https://github.com/tobychui/zoraxy/releases/download/${RELEASE}/zoraxy_linux_amd64") + curl -fsSL "https://github.com/tobychui/zoraxy/releases/download/${RELEASE}/zoraxy_linux_amd64" -o $(basename "https://github.com/tobychui/zoraxy/releases/download/${RELEASE}/zoraxy_linux_amd64") rm -rf /opt/zoraxy/zoraxy mv zoraxy_linux_amd64 /opt/zoraxy/zoraxy chmod +x /opt/zoraxy/zoraxy diff --git a/ct/zwave-js-ui.sh b/ct/zwave-js-ui.sh index 760e8e68e..f7ea12385 100644 --- a/ct/zwave-js-ui.sh +++ b/ct/zwave-js-ui.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating Z-Wave JS UI" 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") + 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 msg_ok "Updated Z-Wave JS UI" diff --git a/install/2fauth-install.sh b/install/2fauth-install.sh index 2d1368130..1ef59d150 100644 --- a/install/2fauth-install.sh +++ b/install/2fauth-install.sh @@ -47,7 +47,7 @@ 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") +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" mv "2FAuth-${RELEASE//v/}/" /opt/2fauth diff --git a/install/actualbudget-install.sh b/install/actualbudget-install.sh index 46f53d8dc..24f412596 100644 --- a/install/actualbudget-install.sh +++ b/install/actualbudget-install.sh @@ -35,7 +35,7 @@ msg_ok "Installed Node.js" msg_info "Installing Actual Budget" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/actualbudget/actual/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename"https://github.com/actualbudget/actual/archive/refs/tags/v${RELEASE}.tar.gz") +curl -fsSL "https://github.com/actualbudget/actual/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/actualbudget/actual/archive/refs/tags/v${RELEASE}.tar.gz") tar -xzf v${RELEASE}.tar.gz mv actual-${RELEASE} /opt/actualbudget diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index 05e159261..5b1c4e6fe 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -68,7 +68,7 @@ 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") +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 mv AdventureLog-${RELEASE} /opt/adventurelog cat </opt/adventurelog/backend/server/.env diff --git a/install/agentdvr-install.sh b/install/agentdvr-install.sh index febf3f967..f2e46f32b 100644 --- a/install/agentdvr-install.sh +++ b/install/agentdvr-install.sh @@ -26,7 +26,7 @@ msg_info "Installing AgentDVR" mkdir -p /opt/agentdvr/agent RELEASE=$(curl -fsSL "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=Linux64&fromVersion=0" | grep -o 'https://.*\.zip') cd /opt/agentdvr/agent -curl -fsSL "$RELEASE" -o $(basename"$RELEASE") +curl -fsSL "$RELEASE" -o $(basename "$RELEASE") $STD unzip Agent_Linux64*.zip rm -rf Agent_Linux64*.zip chmod +x ./Agent diff --git a/install/apache-guacamole-install.sh b/install/apache-guacamole-install.sh index f94c37961..7d6566dd8 100644 --- a/install/apache-guacamole-install.sh +++ b/install/apache-guacamole-install.sh @@ -63,10 +63,10 @@ $STD ldconfig RELEASE_CLIENT=$(curl -fsSLL https://api.github.com/repos/apache/guacamole-client/tags | jq -r '.[0].name') curl -fsSL "https://downloads.apache.org/guacamole/${RELEASE_CLIENT}/binary/guacamole-${RELEASE_CLIENT}.war" -o "/opt/apache-guacamole/tomcat9/webapps/guacamole.war" cd /root -curl -fsSL "--directory-prefix=/root/ https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.26.tar.gz" -o $(basename"--directory-prefix=/root/ https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.26.tar.gz") +curl -fsSL "--directory-prefix=/root/ https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.26.tar.gz" -o $(basename "--directory-prefix=/root/ https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.26.tar.gz") $STD tar -xf ~/mysql-connector-java-8.0.26.tar.gz mv ~/mysql-connector-java-8.0.26/mysql-connector-java-8.0.26.jar /etc/guacamole/lib/ -curl -fsSL "--directory-prefix=/root/ https://downloads.apache.org/guacamole/1.5.5/binary/guacamole-auth-jdbc-1.5.5.tar.gz" -o $(basename"--directory-prefix=/root/ https://downloads.apache.org/guacamole/1.5.5/binary/guacamole-auth-jdbc-1.5.5.tar.gz") +curl -fsSL "--directory-prefix=/root/ https://downloads.apache.org/guacamole/1.5.5/binary/guacamole-auth-jdbc-1.5.5.tar.gz" -o $(basename "--directory-prefix=/root/ https://downloads.apache.org/guacamole/1.5.5/binary/guacamole-auth-jdbc-1.5.5.tar.gz") $STD tar -xf ~/guacamole-auth-jdbc-1.5.5.tar.gz mv ~/guacamole-auth-jdbc-1.5.5/mysql/guacamole-auth-jdbc-mysql-1.5.5.jar /etc/guacamole/extensions/ msg_ok "Setup Apache Guacamole" diff --git a/install/apache-tika-install.sh b/install/apache-tika-install.sh index 76a5c937e..f654ad6bc 100644 --- a/install/apache-tika-install.sh +++ b/install/apache-tika-install.sh @@ -42,7 +42,7 @@ msg_info "Installing Apache Tika" mkdir -p /opt/apache-tika cd /opt/apache-tika RELEASE="$(curl -fsSL https://dlcdn.apache.org/tika/ | grep -oP '(?<=href=")[0-9]+\.[0-9]+\.[0-9]+(?=/")' | sort -V | tail -n1)" -curl -fsSL "https://dlcdn.apache.org/tika/${RELEASE}/tika-server-standard-${RELEASE}.jar" -o $(basename"https://dlcdn.apache.org/tika/${RELEASE}/tika-server-standard-${RELEASE}.jar") +curl -fsSL "https://dlcdn.apache.org/tika/${RELEASE}/tika-server-standard-${RELEASE}.jar" -o $(basename "https://dlcdn.apache.org/tika/${RELEASE}/tika-server-standard-${RELEASE}.jar") mv tika-server-standard-${RELEASE}.jar tika-server-standard.jar echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Apache Tika" diff --git a/install/aria2-install.sh b/install/aria2-install.sh index baf96f6a9..ec37e7b54 100644 --- a/install/aria2-install.sh +++ b/install/aria2-install.sh @@ -22,7 +22,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then msg_info "Installing AriaNG" $STD apt-get install -y nginx systemctl disable -q --now nginx - curl -fsSL "$(curl -fsSL https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)" -o $(basename"$(curl -fsSL https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)") + curl -fsSL "$(curl -fsSL https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)") $STD unzip AriaNg-*-AllInOne.zip -d /var/www rm /etc/nginx/sites-enabled/* cat </etc/nginx/conf.d/ariang.conf diff --git a/install/authelia-install.sh b/install/authelia-install.sh index bb8119a15..36b62bad4 100644 --- a/install/authelia-install.sh +++ b/install/authelia-install.sh @@ -15,7 +15,7 @@ update_os msg_info "Installing Authelia" RELEASE=$(curl -fsSL https://api.github.com/repos/authelia/authelia/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb" -o $(basename"https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb") +curl -fsSL "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb" -o $(basename "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb") $STD dpkg -i "authelia_${RELEASE}_amd64.deb" msg_ok "Install Authelia completed" diff --git a/install/authentik-install.sh b/install/authentik-install.sh index 8d452a786..5d288ad66 100644 --- a/install/authentik-install.sh +++ b/install/authentik-install.sh @@ -39,7 +39,7 @@ msg_ok "Installed Dependencies" msg_info "Installing yq" cd /tmp YQ_LATEST="$(curl -fsSL "https://api.github.com/repos/mikefarah/yq/releases/latest" | grep -Po '"tag_name": \K.*?(?=")')" -curl -fsSL "https://github.com/mikefarah/yq/releases/download/${YQ_LATEST}/yq_linux_amd64" -qO /usr/bin/yq" -o $(basename"https://github.com/mikefarah/yq/releases/download/${YQ_LATEST}/yq_linux_amd64" -qO /usr/bin/yq") +curl -fsSL "https://github.com/mikefarah/yq/releases/download/${YQ_LATEST}/yq_linux_amd64" -qO /usr/bin/yq" -o $(basename "https://github.com/mikefarah/yq/releases/download/${YQ_LATEST}/yq_linux_amd64" -qO /usr/bin/yq") chmod +x /usr/bin/yq msg_ok "Installed yq" diff --git a/install/autobrr-install.sh b/install/autobrr-install.sh index d0f035fce..06febc839 100644 --- a/install/autobrr-install.sh +++ b/install/autobrr-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing Autobrr" -curl -fsSL "$(curl -fsSL https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4)" -o $(basename"$(curl -fsSL https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4)") +curl -fsSL "$(curl -fsSL https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4)") tar -C /usr/local/bin -xzf autobrr*.tar.gz rm -rf autobrr*.tar.gz mkdir -p /root/.config/autobrr diff --git a/install/baikal-install.sh b/install/baikal-install.sh index 6e010e0e3..da5054684 100644 --- a/install/baikal-install.sh +++ b/install/baikal-install.sh @@ -38,7 +38,7 @@ msg_ok "Set up PostgreSQL" 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") +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" cat </opt/baikal/config/baikal.yaml database: diff --git a/install/barcode-buddy-install.sh b/install/barcode-buddy-install.sh index ec451b111..b646bf9ee 100644 --- a/install/barcode-buddy-install.sh +++ b/install/barcode-buddy-install.sh @@ -24,7 +24,7 @@ msg_ok "Installed Dependencies" 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") +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" mv "/opt/barcodebuddy-${RELEASE}" /opt/barcodebuddy chown -R www-data:www-data /opt/barcodebuddy/data diff --git a/install/bazarr-install.sh b/install/bazarr-install.sh index 0dc9a882b..3ca6783d8 100755 --- a/install/bazarr-install.sh +++ b/install/bazarr-install.sh @@ -23,7 +23,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") +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 chmod 775 /opt/bazarr /var/lib/bazarr/ python3 -m pip install -q -r /opt/bazarr/requirements.txt diff --git a/install/bookstack-install.sh b/install/bookstack-install.sh index 45b49a25b..4756a0868 100644 --- a/install/bookstack-install.sh +++ b/install/bookstack-install.sh @@ -43,7 +43,7 @@ msg_info "Setup Bookstack (Patience)" 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") +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 mv BookStack-${RELEASE} /opt/bookstack cd /opt/bookstack diff --git a/install/caddy-install.sh b/install/caddy-install.sh index 05333304a..fb339f64b 100644 --- a/install/caddy-install.sh +++ b/install/caddy-install.sh @@ -44,7 +44,7 @@ curl -fsSL "https://golang.org/dl/"$golang_tarball" -o ""$temp_file"" msg_info "Setup xCaddy" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/caddyserver/xcaddy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL "https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_amd64.deb" -o $(basename"https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_amd64.deb") +curl -fsSL "https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_amd64.deb" -o $(basename "https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_amd64.deb") $STD dpkg -i xcaddy_${RELEASE:1}_linux_amd64.deb rm -rf /opt/xcaddy* $STD xcaddy build diff --git a/install/commafeed-install.sh b/install/commafeed-install.sh index 1ba8887e7..5e9a58dd3 100644 --- a/install/commafeed-install.sh +++ b/install/commafeed-install.sh @@ -19,7 +19,7 @@ msg_ok "Installed Dependencies" msg_info "Installing Azul Zulu" curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xB1998361219BD9C9" -o "/etc/apt/trusted.gpg.d/zulu-repo.asc" -curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o $(basename"https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb") +curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o $(basename "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb") $STD dpkg -i zulu-repo_1.0.0-3_all.deb $STD apt-get update $STD apt-get -y install zulu17-jdk @@ -28,7 +28,7 @@ msg_ok "Installed Azul Zulu" RELEASE=$(curl -fsSLL https://api.github.com/repos/Athou/commafeed/releases/latest | grep '"tag_name":' | cut -d'"' -f4) 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") +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 mv commafeed-${RELEASE}-h2/* /opt/commafeed/ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/cosmos-install.sh b/install/cosmos-install.sh index 75435c201..2e0caf1fe 100644 --- a/install/cosmos-install.sh +++ b/install/cosmos-install.sh @@ -22,7 +22,7 @@ msg_ok "Installed Dependencies" msg_info "Install mergerfs" MERGERFS_VERSION="2.40.2" -curl -fsSL "https://github.com/trapexit/mergerfs/releases/download/${MERGERFS_VERSION}/mergerfs_${MERGERFS_VERSION}.debian-bullseye_amd64.deb" -o $(basename"https://github.com/trapexit/mergerfs/releases/download/${MERGERFS_VERSION}/mergerfs_${MERGERFS_VERSION}.debian-bullseye_amd64.deb") +curl -fsSL "https://github.com/trapexit/mergerfs/releases/download/${MERGERFS_VERSION}/mergerfs_${MERGERFS_VERSION}.debian-bullseye_amd64.deb" -o $(basename "https://github.com/trapexit/mergerfs/releases/download/${MERGERFS_VERSION}/mergerfs_${MERGERFS_VERSION}.debian-bullseye_amd64.deb") $STD dpkg -i "mergerfs_${MERGERFS_VERSION}.debian-bullseye_amd64.deb" || $STD apt-get install -f -y rm "mergerfs_${MERGERFS_VERSION}.debian-bullseye_amd64.deb" msg_ok "Installed mergerfs" diff --git a/install/crafty-controller-install.sh b/install/crafty-controller-install.sh index 95bad71ba..9a859eb58 100644 --- a/install/crafty-controller-install.sh +++ b/install/crafty-controller-install.sh @@ -47,7 +47,7 @@ cd /opt 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") +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 cp -a crafty-4-v${RELEASE}/. /opt/crafty-controller/crafty/crafty-4/ rm -rf crafty-4-v${RELEASE} diff --git a/install/duplicati-install.sh b/install/duplicati-install.sh index 181a6b72e..088a3a402 100644 --- a/install/duplicati-install.sh +++ b/install/duplicati-install.sh @@ -22,7 +22,7 @@ msg_ok "Installed Dependencies" msg_info "Setting up Duplicati" RELEASE=$(curl -fsSL https://api.github.com/repos/duplicati/duplicati/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') -curl -fsSL "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb" -o $(basename"https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb") +curl -fsSL "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb" -o $(basename "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb") $STD dpkg -i duplicati-${RELEASE}-linux-x64-gui.deb echo "${RELEASE}" >/opt/Duplicati_version.txt msg_ok "Finished setting up Duplicati" diff --git a/install/emby-install.sh b/install/emby-install.sh index 7deca04e8..bbe5fac47 100644 --- a/install/emby-install.sh +++ b/install/emby-install.sh @@ -27,7 +27,7 @@ msg_ok "Set Up Hardware Acceleration" LATEST=$(curl -fsSLL https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | grep '"tag_name":' | cut -d'"' -f4) msg_info "Installing Emby" -curl -fsSL "https://github.com/MediaBrowser/Emby.Releases/releases/download/${LATEST}/emby-server-deb_${LATEST}_amd64.deb" -o $(basename"https://github.com/MediaBrowser/Emby.Releases/releases/download/${LATEST}/emby-server-deb_${LATEST}_amd64.deb") +curl -fsSL "https://github.com/MediaBrowser/Emby.Releases/releases/download/${LATEST}/emby-server-deb_${LATEST}_amd64.deb" -o $(basename "https://github.com/MediaBrowser/Emby.Releases/releases/download/${LATEST}/emby-server-deb_${LATEST}_amd64.deb") $STD dpkg -i emby-server-deb_${LATEST}_amd64.deb if [[ "$CTTYPE" == "0" ]]; then sed -i -e 's/^ssl-cert:x:104:$/render:x:104:root,emby/' -e 's/^render:x:108:root,emby$/ssl-cert:x:108:/' /etc/group diff --git a/install/ersatztv-install.sh b/install/ersatztv-install.sh index 49acc997e..035745f32 100644 --- a/install/ersatztv-install.sh +++ b/install/ersatztv-install.sh @@ -15,7 +15,7 @@ update_os msg_info "Installing FFmpeg (Patience)" cd /usr/local/bin -curl -fsSL "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz" -o $(basename"https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz") +curl -fsSL "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz" -o $(basename "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz") $STD tar -xvf ffmpeg-release-amd64-static.tar.xz rm -f ffmpeg-*.tar.xz cd ffmpeg-* diff --git a/install/fenrus-install.sh b/install/fenrus-install.sh index 711010018..72d2dd0e9 100644 --- a/install/fenrus-install.sh +++ b/install/fenrus-install.sh @@ -22,7 +22,7 @@ msg_info "Installing ASP.NET Core 7 SDK" var_os=$(grep "^ID=" /etc/os-release | cut -d'=' -f2 | tr -d '"') var_version=$(grep "^VERSION_ID=" /etc/os-release | cut -d'=' -f2 | tr -d '"') if [ "${var_os}" = "debian" ]; then - curl -fsSL "https://packages.microsoft.com/config/debian/$var_version/packages-microsoft-prod.deb" -o $(basename"https://packages.microsoft.com/config/debian/$var_version/packages-microsoft-prod.deb") + curl -fsSL "https://packages.microsoft.com/config/debian/$var_version/packages-microsoft-prod.deb" -o $(basename "https://packages.microsoft.com/config/debian/$var_version/packages-microsoft-prod.deb") $STD dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb fi diff --git a/install/firefly-install.sh b/install/firefly-install.sh index 912db6487..4d3cacc23 100644 --- a/install/firefly-install.sh +++ b/install/firefly-install.sh @@ -44,7 +44,7 @@ msg_ok "Set up database" msg_info "Installing Firefly III (Patience)" RELEASE=$(curl -fsSL https://api.github.com/repos/firefly-iii/firefly-iii/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') cd /opt -curl -fsSL "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz" -o $(basename"https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz") +curl -fsSL "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz" -o $(basename "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz") mkdir -p /opt/firefly tar -xzf FireflyIII-v${RELEASE}.tar.gz -C /opt/firefly chown -R www-data:www-data /opt/firefly diff --git a/install/freshrss-install.sh b/install/freshrss-install.sh index 9b34bdf56..679737d7a 100644 --- a/install/freshrss-install.sh +++ b/install/freshrss-install.sh @@ -38,7 +38,7 @@ msg_ok "Set up PostgreSQL" 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") +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" mv "/opt/FreshRSS-${RELEASE}" /opt/freshrss cd /opt/freshrss diff --git a/install/frigate-install.sh b/install/frigate-install.sh index ea311c1e6..b3dd21c5f 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -142,7 +142,7 @@ msg_info "Installing Coral Object Detection Model (Patience)" 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") +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 rm v1.0.26.zip cd libusb-1.0.26 diff --git a/install/gitea-install.sh b/install/gitea-install.sh index 072de507c..96f2829ae 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -21,7 +21,7 @@ msg_ok "Installed Dependencies" msg_info "Installing Gitea" RELEASE=$(curl -fsSL https://github.com/go-gitea/gitea/releases/latest | grep "title>Release" | cut -d " " -f 4 | sed 's/^v//') -curl -fsSL "https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64" -o $(basename"https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64") +curl -fsSL "https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64" -o $(basename "https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64") mv gitea* /usr/local/bin/gitea chmod +x /usr/local/bin/gitea adduser --system --group --disabled-password --shell /bin/bash --home /etc/gitea gitea >/dev/null diff --git a/install/glance-install.sh b/install/glance-install.sh index 472ceb5b6..88841a596 100644 --- a/install/glance-install.sh +++ b/install/glance-install.sh @@ -16,7 +16,7 @@ update_os msg_info "Installing Glance" RELEASE=$(curl -fsSL https://api.github.com/repos/glanceapp/glance/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cd /opt -curl -fsSL "https://github.com/glanceapp/glance/releases/download/v${RELEASE}/glance-linux-amd64.tar.gz" -o $(basename"https://github.com/glanceapp/glance/releases/download/v${RELEASE}/glance-linux-amd64.tar.gz") +curl -fsSL "https://github.com/glanceapp/glance/releases/download/v${RELEASE}/glance-linux-amd64.tar.gz" -o $(basename "https://github.com/glanceapp/glance/releases/download/v${RELEASE}/glance-linux-amd64.tar.gz") mkdir -p /opt/glance tar -xzf glance-linux-amd64.tar.gz -C /opt/glance cat </opt/glance/glance.yml diff --git a/install/glpi-install.sh b/install/glpi-install.sh index 11af1307e..b157100d8 100644 --- a/install/glpi-install.sh +++ b/install/glpi-install.sh @@ -43,7 +43,7 @@ msg_ok "Set up database" msg_info "Installing GLPi" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/glpi-project/glpi/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/') -curl -fsSL "https://github.com/glpi-project/glpi/releases/download/${RELEASE}/glpi-${RELEASE}.tgz" -o $(basename"https://github.com/glpi-project/glpi/releases/download/${RELEASE}/glpi-${RELEASE}.tgz") +curl -fsSL "https://github.com/glpi-project/glpi/releases/download/${RELEASE}/glpi-${RELEASE}.tgz" -o $(basename "https://github.com/glpi-project/glpi/releases/download/${RELEASE}/glpi-${RELEASE}.tgz") $STD tar -xzvf glpi-${RELEASE}.tgz cd /opt/glpi $STD php bin/console db:install --db-name=$DB_NAME --db-user=$DB_USER --db-password=$DB_PASS --no-interaction diff --git a/install/go2rtc-install.sh b/install/go2rtc-install.sh index 8c34fd7c2..8a5bf5e1e 100644 --- a/install/go2rtc-install.sh +++ b/install/go2rtc-install.sh @@ -16,7 +16,7 @@ update_os msg_info "Installing go2rtc" mkdir -p /opt/go2rtc cd /opt/go2rtc -curl -fsSL "https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64" -o $(basename"https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64") +curl -fsSL "https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64" -o $(basename "https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64") chmod +x go2rtc_linux_amd64 msg_ok "Installed go2rtc" diff --git a/install/gokapi-install.sh b/install/gokapi-install.sh index f46f649d7..a00851ef1 100644 --- a/install/gokapi-install.sh +++ b/install/gokapi-install.sh @@ -16,7 +16,7 @@ update_os msg_info "Installing Gokapi" LATEST=$(curl -fsSLL 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") +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 rm gokapi-linux_amd64.zip chmod +x /opt/gokapi/gokapi-linux_amd64 diff --git a/install/gotify-install.sh b/install/gotify-install.sh index 96b50928b..431aea59d 100644 --- a/install/gotify-install.sh +++ b/install/gotify-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Gotify" RELEASE=$(curl -fsSL https://api.github.com/repos/gotify/server/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') 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") +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 rm -rf gotify-linux-amd64.zip chmod +x gotify-linux-amd64 diff --git a/install/graylog-install.sh b/install/graylog-install.sh index d0218c387..5316dcc4a 100644 --- a/install/graylog-install.sh +++ b/install/graylog-install.sh @@ -28,7 +28,7 @@ msg_ok "Setup MongoDB" msg_info "Setup Graylog Data Node" PASSWORD_SECRET=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c16) -curl -fsSL "https://packages.graylog2.org/repo/packages/graylog-6.1-repository_latest.deb" -o $(basename"https://packages.graylog2.org/repo/packages/graylog-6.1-repository_latest.deb") +curl -fsSL "https://packages.graylog2.org/repo/packages/graylog-6.1-repository_latest.deb" -o $(basename "https://packages.graylog2.org/repo/packages/graylog-6.1-repository_latest.deb") $STD dpkg -i graylog-6.1-repository_latest.deb $STD apt-get update $STD apt-get install graylog-datanode -y diff --git a/install/grist-install.sh b/install/grist-install.sh index 29a929a41..bc15e0326 100644 --- a/install/grist-install.sh +++ b/install/grist-install.sh @@ -36,7 +36,7 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/gristlabs/grist-core/releases/ 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") +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 mv grist-core-${RELEASE} grist cd grist diff --git a/install/grocy-install.sh b/install/grocy-install.sh index d98f1f553..d67c1ec73 100644 --- a/install/grocy-install.sh +++ b/install/grocy-install.sh @@ -32,7 +32,7 @@ msg_ok "Installed PHP8.2" msg_info "Installing grocy" latest=$(curl -fsSL https://api.github.com/repos/grocy/grocy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/grocy/grocy/releases/download/v${latest}/grocy_${latest}.zip" -o $(basename"https://github.com/grocy/grocy/releases/download/v${latest}/grocy_${latest}.zip") +curl -fsSL "https://github.com/grocy/grocy/releases/download/v${latest}/grocy_${latest}.zip" -o $(basename "https://github.com/grocy/grocy/releases/download/v${latest}/grocy_${latest}.zip") $STD unzip grocy_${latest}.zip -d /var/www/html chown -R www-data:www-data /var/www/html cp /var/www/html/config-dist.php /var/www/html/data/config.php diff --git a/install/habitica-install.sh b/install/habitica-install.sh index b63f81b00..3b35a99f7 100644 --- a/install/habitica-install.sh +++ b/install/habitica-install.sh @@ -19,7 +19,7 @@ $STD apt-get install -y \ gnupg \ build-essential \ git -curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb" -o $(basename"http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb") +curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb" -o $(basename "http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb") $STD dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb msg_ok "Installed Dependencies" diff --git a/install/headscale-install.sh b/install/headscale-install.sh index 4f21b9c71..2d9b91a6e 100644 --- a/install/headscale-install.sh +++ b/install/headscale-install.sh @@ -15,7 +15,7 @@ update_os RELEASE=$(curl -fsSL https://api.github.com/repos/juanfont/headscale/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing ${APPLICATION} v${RELEASE}" -curl -fsSL "https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb" -o $(basename"https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb") +curl -fsSL "https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb" -o $(basename "https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb") $STD dpkg -i headscale_${RELEASE}_linux_amd64.deb systemctl enable -q --now headscale echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/heimdall-dashboard-install.sh b/install/heimdall-dashboard-install.sh index 63152c664..7c52f9f96 100644 --- a/install/heimdall-dashboard-install.sh +++ b/install/heimdall-dashboard-install.sh @@ -22,7 +22,7 @@ msg_ok "Installed Dependencies" RELEASE=$(curl -fsSLX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]') echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_info "Installing Heimdall Dashboard ${RELEASE}" -curl -fsSL "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" -o $(basename"https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz") +curl -fsSL "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" -o $(basename "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz") tar xzf ${RELEASE}.tar.gz VER=$(curl -fsSL https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') rm -rf ${RELEASE}.tar.gz diff --git a/install/hivemq-install.sh b/install/hivemq-install.sh index 091e3aed6..82110390a 100644 --- a/install/hivemq-install.sh +++ b/install/hivemq-install.sh @@ -26,7 +26,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") +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 mkdir -p /opt/hivemq mv hivemq-ce-${RELEASE}/* /opt/hivemq diff --git a/install/hoarder-install.sh b/install/hoarder-install.sh index e01337538..0ec48beda 100644 --- a/install/hoarder-install.sh +++ b/install/hoarder-install.sh @@ -35,7 +35,7 @@ msg_ok "Installed Additional Tools" msg_info "Installing Meilisearch" cd /tmp -curl -fsSL "https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb" -o $(basename"https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb") +curl -fsSL "https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb" -o $(basename "https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb") $STD dpkg -i meilisearch.deb curl -fsSL "https://raw.githubusercontent.com/meilisearch/meilisearch/latest/config.toml" -o "/etc/meilisearch.toml" MASTER_KEY=$(openssl rand -base64 12) @@ -61,7 +61,7 @@ msg_ok "Installed Node.js" msg_info "Installing Hoarder" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/hoarder-app/hoarder/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip" -o $(basename"https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip") +curl -fsSL "https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip") unzip -q v${RELEASE}.zip mv hoarder-${RELEASE} /opt/hoarder cd /opt/hoarder diff --git a/install/homarr-install.sh b/install/homarr-install.sh index 2c6f354fd..efb41c662 100644 --- a/install/homarr-install.sh +++ b/install/homarr-install.sh @@ -41,7 +41,7 @@ msg_ok "Installed Node.js/pnpm" msg_info "Installing Homarr (Patience)" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/homarr-labs/homarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE}.zip" -o $(basename"https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE}.zip") +curl -fsSL "https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE}.zip") unzip -q v${RELEASE}.zip mv homarr-${RELEASE} /opt/homarr mkdir -p /opt/homarr_db diff --git a/install/homer-install.sh b/install/homer-install.sh index e2ab28c27..eb6c30d3d 100644 --- a/install/homer-install.sh +++ b/install/homer-install.sh @@ -20,7 +20,7 @@ msg_ok "Installed Dependencies" msg_info "Installing Homer" mkdir -p /opt/homer cd /opt/homer -curl -fsSL "https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip" -o $(basename"https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip") +curl -fsSL "https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip" -o $(basename "https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip") $STD unzip homer.zip rm -rf homer.zip cp assets/config.yml.dist assets/config.yml diff --git a/install/influxdb-install.sh b/install/influxdb-install.sh index 86b10cf95..ee02eb8d8 100644 --- a/install/influxdb-install.sh +++ b/install/influxdb-install.sh @@ -37,7 +37,7 @@ if [[ $INFLUX == "2" ]]; then $STD apt-get install -y influxdb2 else $STD apt-get install -y influxdb - curl -fsSL "https://dl.influxdata.com/chronograf/releases/chronograf_1.10.1_amd64.deb" -o $(basename"https://dl.influxdata.com/chronograf/releases/chronograf_1.10.1_amd64.deb") + curl -fsSL "https://dl.influxdata.com/chronograf/releases/chronograf_1.10.1_amd64.deb" -o $(basename "https://dl.influxdata.com/chronograf/releases/chronograf_1.10.1_amd64.deb") $STD dpkg -i chronograf_1.10.1_amd64.deb fi $STD systemctl enable --now influxdb diff --git a/install/inspircd-install.sh b/install/inspircd-install.sh index 1acf85af6..b2840c359 100644 --- a/install/inspircd-install.sh +++ b/install/inspircd-install.sh @@ -16,7 +16,7 @@ update_os msg_info "Installing InspIRCd" RELEASE=$(curl -fsSL https://api.github.com/repos/inspircd/inspircd/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cd /opt -curl -fsSL "https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb" -o $(basename"https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb") +curl -fsSL "https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb" -o $(basename "https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb") $STD apt-get install "./inspircd_${RELEASE}.deb12u1_amd64.deb" -y &>/dev/null cat </etc/inspircd/inspircd.conf diff --git a/install/iventoy-install.sh b/install/iventoy-install.sh index 353d9f3b4..20d469221 100644 --- a/install/iventoy-install.sh +++ b/install/iventoy-install.sh @@ -16,7 +16,7 @@ update_os RELEASE=$(curl -fsSL https://api.github.com/repos/ventoy/pxe/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing iVentoy v${RELEASE}" mkdir -p /opt/iventoy/{data,iso} -curl -fsSL "https://github.com/ventoy/PXE/releases/download/v${RELEASE}/iventoy-${RELEASE}-linux-free.tar.gz" -o $(basename"https://github.com/ventoy/PXE/releases/download/v${RELEASE}/iventoy-${RELEASE}-linux-free.tar.gz") +curl -fsSL "https://github.com/ventoy/PXE/releases/download/v${RELEASE}/iventoy-${RELEASE}-linux-free.tar.gz" -o $(basename "https://github.com/ventoy/PXE/releases/download/v${RELEASE}/iventoy-${RELEASE}-linux-free.tar.gz") tar -C /tmp -xzf iventoy*.tar.gz mv /tmp/iventoy*/* /opt/iventoy/ rm -rf iventoy*.tar.gz diff --git a/install/jackett-install.sh b/install/jackett-install.sh index f5b511314..8501842dd 100644 --- a/install/jackett-install.sh +++ b/install/jackett-install.sh @@ -15,7 +15,7 @@ update_os msg_info "Installing Jackett" RELEASE=$(curl -fsSL https://github.com/Jackett/Jackett/releases/latest | grep "title>Release" | cut -d " " -f 4) -curl -fsSL "https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz" -o $(basename"https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz") +curl -fsSL "https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz" -o $(basename "https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz") tar -xzf Jackett.Binaries.LinuxAMDx64.tar.gz -C /opt rm -rf Jackett.Binaries.LinuxAMDx64.tar.gz echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/kimai-install.sh b/install/kimai-install.sh index 9a73054e2..ae9ddcb46 100644 --- a/install/kimai-install.sh +++ b/install/kimai-install.sh @@ -58,7 +58,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") +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 mv kimai-${RELEASE} /opt/kimai cd /opt/kimai diff --git a/install/koillection-install.sh b/install/koillection-install.sh index 1edca202e..e4486327a 100644 --- a/install/koillection-install.sh +++ b/install/koillection-install.sh @@ -62,7 +62,7 @@ msg_ok "Installed Node.js/Yarn" 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") +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" mv "/opt/koillection-${RELEASE}" /opt/koillection cd /opt/koillection diff --git a/install/komga-install.sh b/install/komga-install.sh index b7dc272ed..4236c9cc6 100644 --- a/install/komga-install.sh +++ b/install/komga-install.sh @@ -19,7 +19,7 @@ msg_ok "Installed Dependencies" msg_info "Installing Komga" RELEASE=$(curl -fsSL https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL "https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar" -o $(basename"https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar") +curl -fsSL "https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar" -o $(basename "https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar") mkdir -p /opt/komga mv -f komga-${RELEASE}.jar /opt/komga/komga.jar echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" diff --git a/install/komodo-install.sh b/install/komodo-install.sh index a33998d0f..78adfdcfc 100644 --- a/install/komodo-install.sh +++ b/install/komodo-install.sh @@ -61,7 +61,7 @@ case $DB_CHOICE in esac mkdir -p /opt/komodo cd /opt/komodo -curl -fsSL "https://raw.githubusercontent.com/mbecker20/komodo/main/compose/$DB_COMPOSE_FILE" -o $(basename"https://raw.githubusercontent.com/mbecker20/komodo/main/compose/$DB_COMPOSE_FILE") +curl -fsSL "https://raw.githubusercontent.com/mbecker20/komodo/main/compose/$DB_COMPOSE_FILE" -o $(basename "https://raw.githubusercontent.com/mbecker20/komodo/main/compose/$DB_COMPOSE_FILE") msg_info "Setup Komodo Environment" curl -fsSL "https://raw.githubusercontent.com/mbecker20/komodo/main/compose/compose.env" -o "/opt/komodo/compose.env" diff --git a/install/linkwarden-install.sh b/install/linkwarden-install.sh index 70e232f86..efe0ccd1f 100644 --- a/install/linkwarden-install.sh +++ b/install/linkwarden-install.sh @@ -92,7 +92,7 @@ fi msg_info "Installing Linkwarden (Patience)" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/linkwarden/linkwarden/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL "https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip" -o $(basename"https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip") +curl -fsSL "https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip") unzip -q ${RELEASE}.zip mv linkwarden-${RELEASE:1} /opt/linkwarden cd /opt/linkwarden diff --git a/install/listmonk-install.sh b/install/listmonk-install.sh index 5b3255794..9186f5b9a 100644 --- a/install/listmonk-install.sh +++ b/install/listmonk-install.sh @@ -36,7 +36,7 @@ cd /opt mkdir /opt/listmonk mkdir /opt/listmonk/uploads RELEASE=$(curl -fsSL https://api.github.com/repos/knadh/listmonk/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/knadh/listmonk/releases/download/v${RELEASE}/listmonk_${RELEASE}_linux_amd64.tar.gz" -o $(basename"https://github.com/knadh/listmonk/releases/download/v${RELEASE}/listmonk_${RELEASE}_linux_amd64.tar.gz") +curl -fsSL "https://github.com/knadh/listmonk/releases/download/v${RELEASE}/listmonk_${RELEASE}_linux_amd64.tar.gz" -o $(basename "https://github.com/knadh/listmonk/releases/download/v${RELEASE}/listmonk_${RELEASE}_linux_amd64.tar.gz") tar -xzf "listmonk_${RELEASE}_linux_amd64.tar.gz" -C /opt/listmonk $STD /opt/listmonk/listmonk --new-config --config /opt/listmonk/config.toml diff --git a/install/lubelogger-install.sh b/install/lubelogger-install.sh index b70f52c27..10d14761d 100644 --- a/install/lubelogger-install.sh +++ b/install/lubelogger-install.sh @@ -23,7 +23,7 @@ mkdir -p /opt/lubelogger RELEASE=$(curl -fsSL https://api.github.com/repos/hargata/lubelog/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') 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") +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 chmod 700 /opt/lubelogger/CarCareTracker cp /opt/lubelogger/appsettings.json /opt/lubelogger/appsettings_bak.json diff --git a/install/mafl-install.sh b/install/mafl-install.sh index ac848fe04..f4c959635 100644 --- a/install/mafl-install.sh +++ b/install/mafl-install.sh @@ -36,7 +36,7 @@ msg_ok "Installed Node.js" RELEASE=$(curl -fsSL https://api.github.com/repos/hywax/mafl/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing Mafl v${RELEASE}" -curl -fsSL "https://github.com/hywax/mafl/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename"https://github.com/hywax/mafl/archive/refs/tags/v${RELEASE}.tar.gz") +curl -fsSL "https://github.com/hywax/mafl/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/hywax/mafl/archive/refs/tags/v${RELEASE}.tar.gz") tar -xzf v${RELEASE}.tar.gz mkdir -p /opt/mafl/data curl -fsSL "https://raw.githubusercontent.com/hywax/mafl/main/.example/config.yml" -o "/opt/mafl/data/config.yml" diff --git a/install/mariadb-install.sh b/install/mariadb-install.sh index 5ed7eea20..6eba9d310 100644 --- a/install/mariadb-install.sh +++ b/install/mariadb-install.sh @@ -32,7 +32,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then php-json \ php-curl - curl -fsSL "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz" -o $(basename"https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz") + curl -fsSL "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz" -o $(basename "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz") mkdir -p /var/www/html/phpMyAdmin tar xf phpMyAdmin-5.2.1-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php diff --git a/install/mediamtx-install.sh b/install/mediamtx-install.sh index ff85dd8c0..a7dabb90e 100644 --- a/install/mediamtx-install.sh +++ b/install/mediamtx-install.sh @@ -21,7 +21,7 @@ msg_info "Installing MediaMTX" RELEASE=$(curl -fsSL https://api.github.com/repos/bluenviron/mediamtx/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') mkdir -p /opt/mediamtx cd /opt/mediamtx -curl -fsSL "https://github.com/bluenviron/mediamtx/releases/download/${RELEASE}/mediamtx_${RELEASE}_linux_amd64.tar.gz" -o $(basename"https://github.com/bluenviron/mediamtx/releases/download/${RELEASE}/mediamtx_${RELEASE}_linux_amd64.tar.gz") +curl -fsSL "https://github.com/bluenviron/mediamtx/releases/download/${RELEASE}/mediamtx_${RELEASE}_linux_amd64.tar.gz" -o $(basename "https://github.com/bluenviron/mediamtx/releases/download/${RELEASE}/mediamtx_${RELEASE}_linux_amd64.tar.gz") tar xzf mediamtx_${RELEASE}_linux_amd64.tar.gz rm -rf mediamtx_${RELEASE}_linux_amd64.tar.gz msg_ok "Installed MediaMTX" diff --git a/install/minio-install.sh b/install/minio-install.sh index 4c1227a36..5a5cd2317 100644 --- a/install/minio-install.sh +++ b/install/minio-install.sh @@ -15,7 +15,7 @@ update_os msg_info "Setup MinIO" RELEASE=$(curl -fsSL https://api.github.com/repos/minio/minio/releases/latest | grep '"tag_name"' | awk -F '"' '{print $4}') -curl -fsSL "https://dl.min.io/server/minio/release/linux-amd64/minio" -o $(basename"https://dl.min.io/server/minio/release/linux-amd64/minio") +curl -fsSL "https://dl.min.io/server/minio/release/linux-amd64/minio" -o $(basename "https://dl.min.io/server/minio/release/linux-amd64/minio") mv minio /usr/local/bin/ chmod +x /usr/local/bin/minio useradd -r minio-user -s /sbin/nologin diff --git a/install/monica-install.sh b/install/monica-install.sh index 9f5ab703b..66de5dc76 100644 --- a/install/monica-install.sh +++ b/install/monica-install.sh @@ -50,7 +50,7 @@ msg_ok "Installed Node.js/Yarn" msg_info "Installing monica" RELEASE=$(curl -fsSL https://api.github.com/repos/monicahq/monica/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cd /opt -curl -fsSL "https://github.com/monicahq/monica/releases/download/v${RELEASE}/monica-v${RELEASE}.tar.bz2" -o $(basename"https://github.com/monicahq/monica/releases/download/v${RELEASE}/monica-v${RELEASE}.tar.bz2") +curl -fsSL "https://github.com/monicahq/monica/releases/download/v${RELEASE}/monica-v${RELEASE}.tar.bz2" -o $(basename "https://github.com/monicahq/monica/releases/download/v${RELEASE}/monica-v${RELEASE}.tar.bz2") tar -xjf "monica-v${RELEASE}.tar.bz2" mv "/opt/monica-v${RELEASE}" /opt/monica cd /opt/monica diff --git a/install/myspeed-install.sh b/install/myspeed-install.sh index d5105762f..134ed7cbc 100644 --- a/install/myspeed-install.sh +++ b/install/myspeed-install.sh @@ -37,7 +37,7 @@ msg_ok "Installed Node.js" 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") +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 cd myspeed $STD npm install diff --git a/install/mysql-install.sh b/install/mysql-install.sh index f5bfba2b9..4df9822f2 100644 --- a/install/mysql-install.sh +++ b/install/mysql-install.sh @@ -63,7 +63,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then php-json \ php-curl - curl -fsSL "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz" -o $(basename"https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz") + curl -fsSL "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz" -o $(basename "https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz") mkdir -p /var/www/html/phpMyAdmin tar xf phpMyAdmin-5.2.1-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php diff --git a/install/netbox-install.sh b/install/netbox-install.sh index 20ec75624..192747e85 100644 --- a/install/netbox-install.sh +++ b/install/netbox-install.sh @@ -48,7 +48,7 @@ msg_ok "Set up PostgreSQL" 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") +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" mv /opt/netbox-${RELEASE}/ /opt/netbox diff --git a/install/nextpvr-install.sh b/install/nextpvr-install.sh index 4205a9d2e..3754dfb8b 100644 --- a/install/nextpvr-install.sh +++ b/install/nextpvr-install.sh @@ -29,7 +29,7 @@ msg_ok "Installed Dependencies" msg_info "Setup NextPVR (Patience)" cd /opt -curl -fsSL "https://nextpvr.com/nextpvr-helper.deb" -o $(basename"https://nextpvr.com/nextpvr-helper.deb") +curl -fsSL "https://nextpvr.com/nextpvr-helper.deb" -o $(basename "https://nextpvr.com/nextpvr-helper.deb") $STD dpkg -i nextpvr-helper.deb msg_ok "Installed NextPVR" diff --git a/install/nodebb-install.sh b/install/nodebb-install.sh index 774528b40..862b2dbc2 100644 --- a/install/nodebb-install.sh +++ b/install/nodebb-install.sh @@ -87,7 +87,7 @@ msg_ok "MongoDB successfully configurated" 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") +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 mv NodeBB-${RELEASE} /opt/nodebb cd /opt/nodebb diff --git a/install/npmplus-install.sh b/install/npmplus-install.sh index 1d1578909..415588de3 100644 --- a/install/npmplus-install.sh +++ b/install/npmplus-install.sh @@ -37,7 +37,7 @@ msg_ok "Installed Docker & Compose" msg_info "Fetching NPMplus" cd /opt -curl -fsSL "https://raw.githubusercontent.com/ZoeyVid/NPMplus/refs/heads/develop/compose.yaml" -o $(basename"https://raw.githubusercontent.com/ZoeyVid/NPMplus/refs/heads/develop/compose.yaml") +curl -fsSL "https://raw.githubusercontent.com/ZoeyVid/NPMplus/refs/heads/develop/compose.yaml" -o $(basename "https://raw.githubusercontent.com/ZoeyVid/NPMplus/refs/heads/develop/compose.yaml") msg_ok "Fetched NPMplus" attempts=0 diff --git a/install/omada-install.sh b/install/omada-install.sh index af45d1ec3..92f02445e 100644 --- a/install/omada-install.sh +++ b/install/omada-install.sh @@ -31,7 +31,7 @@ fi msg_info "Installing Azul Zulu Java" curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xB1998361219BD9C9" -o "/etc/apt/trusted.gpg.d/zulu-repo.asc" -curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o $(basename"https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb") +curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o $(basename "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb") $STD dpkg -i zulu-repo_1.0.0-3_all.deb $STD apt-get update $STD apt-get -y install zulu21-jre-headless diff --git a/install/ombi-install.sh b/install/ombi-install.sh index a12acf170..620e73440 100644 --- a/install/ombi-install.sh +++ b/install/ombi-install.sh @@ -15,7 +15,7 @@ update_os msg_info "Installing Ombi" RELEASE=$(curl -fsSLL https://api.github.com/repos/Ombi-app/Ombi/releases/latest | grep '"tag_name":' | cut -d'"' -f4) -curl -fsSL "https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz" -o $(basename"https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz") +curl -fsSL "https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz" -o $(basename "https://github.com/Ombi-app/Ombi/releases/download/${RELEASE}/linux-x64.tar.gz") echo "${RELEASE}" >/opt/${APPLICATION}_version.txt mkdir -p /opt/ombi tar -xzf linux-x64.tar.gz -C /opt/ombi diff --git a/install/onedev-install.sh b/install/onedev-install.sh index 52134f960..e788f4f14 100644 --- a/install/onedev-install.sh +++ b/install/onedev-install.sh @@ -22,7 +22,7 @@ msg_ok "Installed Dependencies" msg_info "Installing OneDev" cd /opt -curl -fsSL "https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz" -o $(basename"https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz") +curl -fsSL "https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz" -o $(basename "https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz") tar -xzf onedev-latest.tar.gz mv /opt/onedev-latest /opt/onedev $STD /opt/onedev/bin/server.sh install diff --git a/install/opengist-install.sh b/install/opengist-install.sh index 23cb6cb3b..68b35e66a 100644 --- a/install/opengist-install.sh +++ b/install/opengist-install.sh @@ -20,7 +20,7 @@ msg_ok "Installed Dependencies" msg_info "Install Opengist" RELEASE=$(curl -fsSL https://api.github.com/repos/thomiceli/opengist/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" -curl -fsSL "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz" -o $(basename"https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz") +curl -fsSL "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz" -o $(basename "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz") $STD tar -xzf opengist${RELEASE}-linux-amd64.tar.gz mv opengist /opt/opengist chmod +x /opt/opengist/opengist diff --git a/install/openhab-install.sh b/install/openhab-install.sh index 0ab2e8ea1..3a834d766 100644 --- a/install/openhab-install.sh +++ b/install/openhab-install.sh @@ -20,7 +20,7 @@ msg_ok "Installed Dependencies" msg_info "Installing Azul Zulu21" curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xB1998361219BD9C9" -o "/etc/apt/trusted.gpg.d/zulu-repo.asc" -curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o $(basename"https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb") +curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o $(basename "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb") $STD dpkg -i zulu-repo_1.0.0-3_all.deb $STD apt-get update $STD apt-get -y install zulu21-jdk diff --git a/install/owncast-install.sh b/install/owncast-install.sh index f9f7754aa..6e8a38955 100644 --- a/install/owncast-install.sh +++ b/install/owncast-install.sh @@ -20,7 +20,7 @@ msg_ok "Installed Dependencies" msg_info "Installing Owncast" mkdir /opt/owncast cd /opt/owncast -curl -fsSL "$(curl -fsSL https://api.github.com/repos/owncast/owncast/releases/latest | grep download | grep linux-64bit | cut -d\" -f4)" -o $(basename"$(curl -fsSL https://api.github.com/repos/owncast/owncast/releases/latest | grep download | grep linux-64bit | cut -d\" -f4)") +curl -fsSL "$(curl -fsSL https://api.github.com/repos/owncast/owncast/releases/latest | grep download | grep linux-64bit | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/owncast/owncast/releases/latest | grep download | grep linux-64bit | cut -d\" -f4)") $STD unzip owncast*.zip rm owncast*.zip msg_ok "Installed Owncast" diff --git a/install/paperless-ai-install.sh b/install/paperless-ai-install.sh index e3bd84a51..95a223ba8 100644 --- a/install/paperless-ai-install.sh +++ b/install/paperless-ai-install.sh @@ -36,7 +36,7 @@ msg_ok "Installed Node.js" 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") +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 mv paperless-ai-${RELEASE} /opt/paperless-ai cd /opt/paperless-ai diff --git a/install/paperless-ngx-install.sh b/install/paperless-ngx-install.sh index 06a79013d..204769720 100644 --- a/install/paperless-ngx-install.sh +++ b/install/paperless-ngx-install.sh @@ -59,7 +59,7 @@ $STD apt-get install -y \ tesseract-ocr-eng cd /tmp -curl -fsSL "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz" -o $(basename"https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz") +curl -fsSL "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz" -o $(basename "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz") $STD tar -xzf ghostscript-10.04.0.tar.gz cd ghostscript-10.04.0 $STD ./configure diff --git a/install/part-db-install.sh b/install/part-db-install.sh index 7ccf8fed2..9cd883bb9 100644 --- a/install/part-db-install.sh +++ b/install/part-db-install.sh @@ -58,7 +58,7 @@ msg_ok "Installed Node.js/Yarn" 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") +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" mv /opt/Part-DB-server-${RELEASE}/ /opt/partdb diff --git a/install/paymenter-install.sh b/install/paymenter-install.sh index 2331d32fd..461f620d1 100644 --- a/install/paymenter-install.sh +++ b/install/paymenter-install.sh @@ -33,7 +33,7 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/paymenter/paymenter/releases/l echo "${RELEASE}" >/opt/${APPLICATION}_version.txt mkdir -p /opt/paymenter cd /opt/paymenter -curl -fsSL "https://github.com/paymenter/paymenter/releases/download/${RELEASE}/paymenter.tar.gz" -o $(basename"https://github.com/paymenter/paymenter/releases/download/${RELEASE}/paymenter.tar.gz") +curl -fsSL "https://github.com/paymenter/paymenter/releases/download/${RELEASE}/paymenter.tar.gz" -o $(basename "https://github.com/paymenter/paymenter/releases/download/${RELEASE}/paymenter.tar.gz") $STD tar -xzvf paymenter.tar.gz chmod -R 755 storage/* bootstrap/cache/ msg_ok "Installed Paymenter" diff --git a/install/pelican-panel-install.sh b/install/pelican-panel-install.sh index 69e8ee99d..d89a0a0c7 100644 --- a/install/pelican-panel-install.sh +++ b/install/pelican-panel-install.sh @@ -56,7 +56,7 @@ msg_info "Installing Pelican Panel" RELEASE=$(curl -fsSL https://api.github.com/repos/pelican-dev/panel/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') mkdir /opt/pelican-panel cd /opt/pelican-panel -curl -fsSL "https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename"https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz") +curl -fsSL "https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename "https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz") tar -xzf "panel.tar.gz" $STD composer install --no-dev --optimize-autoloader --no-interaction $STD php artisan p:environment:setup diff --git a/install/pf2etools-install.sh b/install/pf2etools-install.sh index 690cb1df0..13c5f0283 100644 --- a/install/pf2etools-install.sh +++ b/install/pf2etools-install.sh @@ -35,7 +35,7 @@ msg_ok "Installed Node.js" 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") +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" mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools cd /opt/Pf2eTools diff --git a/install/photoprism-install.sh b/install/photoprism-install.sh index 0ce8a8511..123249e2b 100644 --- a/install/photoprism-install.sh +++ b/install/photoprism-install.sh @@ -35,9 +35,9 @@ msg_info "Installing PhotoPrism (Patience)" mkdir -p /opt/photoprism/{cache,config,photos,storage,temp} mkdir -p /opt/photoprism/photos/{originals,import} mkdir -p /opt/photoprism_backups -curl -fsSL "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xz -C /opt/photoprism --strip-components=1" -o $(basename"-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xz -C /opt/photoprism --strip-components=1") +curl -fsSL "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xz -C /opt/photoprism --strip-components=1" -o $(basename "-cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xz -C /opt/photoprism --strip-components=1") LIBHEIF_URL=$(curl -fsSL "https://dl.photoprism.app/dist/libheif/" | grep -oP "libheif-$(lsb_release -cs)-amd64-v[0-9\.]+\.tar\.gz" | sort -V | tail -n 1) -curl -fsSL "-cO - "https://dl.photoprism.app/dist/libheif/$LIBHEIF_URL" | tar -xzf - -C /usr/local --strip-components=1" -o $(basename"-cO - "https://dl.photoprism.app/dist/libheif/$LIBHEIF_URL" | tar -xzf - -C /usr/local --strip-components=1") +curl -fsSL "-cO - "https://dl.photoprism.app/dist/libheif/$LIBHEIF_URL" | tar -xzf - -C /usr/local --strip-components=1" -o $(basename "-cO - "https://dl.photoprism.app/dist/libheif/$LIBHEIF_URL" | tar -xzf - -C /usr/local --strip-components=1") ldconfig chmod -R 755 /opt/photoprism/photos/originals cat </opt/photoprism/config/.env diff --git a/install/phpipam-install.sh b/install/phpipam-install.sh index b8678115d..3950ff88d 100644 --- a/install/phpipam-install.sh +++ b/install/phpipam-install.sh @@ -40,7 +40,7 @@ msg_ok "Set up MariaDB" 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") +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" mysql -u root "${DB_NAME}" "/opt/${APPLICATION}_version.txt" -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") +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 echo "${RELEASE}" >"/opt/pingvin_version.txt" mv pingvin-share-${RELEASE} /opt/pingvin-share diff --git a/install/plant-it-install.sh b/install/plant-it-install.sh index b8d38a10b..21fda4fad 100644 --- a/install/plant-it-install.sh +++ b/install/plant-it-install.sh @@ -50,7 +50,7 @@ msg_ok "Set up MariaDB" msg_info "Setup Plant-it" RELEASE=$(curl -fsSL https://api.github.com/repos/MDeLuise/plant-it/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/server.jar" -o $(basename"https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/server.jar") +curl -fsSL "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/server.jar" -o $(basename "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/server.jar") mkdir -p /opt/plant-it/{backend,frontend} mkdir -p /opt/plant-it-data mv -f server.jar /opt/plant-it/backend/server.jar @@ -80,7 +80,7 @@ CACHE_PORT=6379 EOF cd /opt/plant-it/frontend -curl -fsSL "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/client.tar.gz" -o $(basename"https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/client.tar.gz") +curl -fsSL "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/client.tar.gz" -o $(basename "https://github.com/MDeLuise/plant-it/releases/download/${RELEASE}/client.tar.gz") tar -xzf client.tar.gz echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" msg_ok "Setup Plant-it" diff --git a/install/pocketid-install.sh b/install/pocketid-install.sh index ab2419b0e..0845436ee 100644 --- a/install/pocketid-install.sh +++ b/install/pocketid-install.sh @@ -46,7 +46,7 @@ read -r -p "What public URL do you want to use (e.g. pocketid.mydomain.com)? " p msg_info "Setup Pocket ID" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/pocket-id/pocket-id/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/pocket-id/pocket-id/archive/refs/tags/v${RELEASE}.zip" -o $(basename"https://github.com/pocket-id/pocket-id/archive/refs/tags/v${RELEASE}.zip") +curl -fsSL "https://github.com/pocket-id/pocket-id/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/pocket-id/pocket-id/archive/refs/tags/v${RELEASE}.zip") unzip -q v${RELEASE}.zip mv pocket-id-${RELEASE}/ /opt/pocket-id diff --git a/install/privatebin-install.sh b/install/privatebin-install.sh index dd57702ba..3fd6e83f7 100644 --- a/install/privatebin-install.sh +++ b/install/privatebin-install.sh @@ -27,7 +27,7 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/PrivateBin/PrivateBin/releases 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") +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 mv PrivateBin-${RELEASE}/* . msg_ok "Installed PrivateBin" diff --git a/install/projectsend-install.sh b/install/projectsend-install.sh index ff11533b2..8dc819b9a 100644 --- a/install/projectsend-install.sh +++ b/install/projectsend-install.sh @@ -39,7 +39,7 @@ msg_ok "Set up MariaDB" msg_info "Installing projectsend" RELEASE=$(curl -fsSL https://api.github.com/repos/projectsend/projectsend/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') 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") +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 mv /opt/projectsend/includes/sys.config.sample.php /opt/projectsend/includes/sys.config.php diff --git a/install/prometheus-alertmanager-install.sh b/install/prometheus-alertmanager-install.sh index 1682ec178..4a71e95cb 100755 --- a/install/prometheus-alertmanager-install.sh +++ b/install/prometheus-alertmanager-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Prometheus Alertmanager" RELEASE=$(curl -fsSL https://api.github.com/repos/prometheus/alertmanager/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') mkdir -p /etc/alertmanager mkdir -p /var/lib/alertmanager -curl -fsSL "https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz" -o $(basename"https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz") +curl -fsSL "https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz" -o $(basename "https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz") tar -xf alertmanager-${RELEASE}.linux-amd64.tar.gz mv alertmanager-${RELEASE}.linux-amd64/alertmanager alertmanager-${RELEASE}.linux-amd64/amtool /usr/local/bin/ mv alertmanager-${RELEASE}.linux-amd64/alertmanager.yml /etc/alertmanager/alertmanager.yml diff --git a/install/prometheus-install.sh b/install/prometheus-install.sh index baa0ee6b0..c645566d5 100644 --- a/install/prometheus-install.sh +++ b/install/prometheus-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Prometheus" RELEASE=$(curl -fsSL https://api.github.com/repos/prometheus/prometheus/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') mkdir -p /etc/prometheus mkdir -p /var/lib/prometheus -curl -fsSL "https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz" -o $(basename"https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz") +curl -fsSL "https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz" -o $(basename "https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz") tar -xf prometheus-${RELEASE}.linux-amd64.tar.gz mv prometheus-${RELEASE}.linux-amd64/prometheus prometheus-${RELEASE}.linux-amd64/promtool /usr/local/bin/ mv prometheus-${RELEASE}.linux-amd64/prometheus.yml /etc/prometheus/prometheus.yml diff --git a/install/prometheus-paperless-ngx-exporter-install.sh b/install/prometheus-paperless-ngx-exporter-install.sh index a13a4d12a..96b77404e 100755 --- a/install/prometheus-paperless-ngx-exporter-install.sh +++ b/install/prometheus-paperless-ngx-exporter-install.sh @@ -15,7 +15,7 @@ update_os msg_info "Installing Prometheus Paperless NGX Exporter" RELEASE=$(curl -fsSL https://api.github.com/repos/hansmi/prometheus-paperless-exporter/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/hansmi/prometheus-paperless-exporter/releases/download/v${RELEASE}/prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz" -o $(basename"https://github.com/hansmi/prometheus-paperless-exporter/releases/download/v${RELEASE}/prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz") +curl -fsSL "https://github.com/hansmi/prometheus-paperless-exporter/releases/download/v${RELEASE}/prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz" -o $(basename "https://github.com/hansmi/prometheus-paperless-exporter/releases/download/v${RELEASE}/prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz") tar -xf prometheus-paperless-exporter_${RELEASE}_linux_amd64.tar.gz mv prometheus-paperless-exporter_${RELEASE}_linux_amd64/prometheus-paperless-exporter /usr/local/bin/ mkdir -p /etc/prometheus-paperless-ngx-exporter diff --git a/install/pterodactyl-panel-install.sh b/install/pterodactyl-panel-install.sh index 1d0cf2562..7082be573 100644 --- a/install/pterodactyl-panel-install.sh +++ b/install/pterodactyl-panel-install.sh @@ -61,7 +61,7 @@ msg_info "Installing pterodactyl Panel" RELEASE=$(curl -fsSL https://api.github.com/repos/pterodactyl/panel/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') mkdir /opt/pterodactyl-panel cd /opt/pterodactyl-panel -curl -fsSL "https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename"https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz") +curl -fsSL "https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename "https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz") tar -xzf "panel.tar.gz" cp .env.example .env IP=$(hostname -I | awk '{print $1}') diff --git a/install/rdtclient-install.sh b/install/rdtclient-install.sh index bd587e8eb..68f792e0c 100644 --- a/install/rdtclient-install.sh +++ b/install/rdtclient-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing ASP.NET Core Runtime" -curl -fsSL "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb" -o $(basename"https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb") +curl -fsSL "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb" -o $(basename "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb") $STD dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb $STD apt-get update @@ -22,7 +22,7 @@ $STD apt-get install -y dotnet-sdk-9.0 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") +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 rm RealDebridClient.zip cd /opt/rdtc diff --git a/install/recyclarr-install.sh b/install/recyclarr-install.sh index f9bf6aef4..e265311c6 100644 --- a/install/recyclarr-install.sh +++ b/install/recyclarr-install.sh @@ -18,7 +18,7 @@ $STD apt-get install -y git msg_ok "Installed Dependencies" msg_info "Installing Recyclarr" -curl -fsSL "$(curl -fsSL https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)" -o $(basename"$(curl -fsSL https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)") +curl -fsSL "$(curl -fsSL https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/recyclarr/recyclarr/releases/latest | grep download | grep linux-x64 | cut -d\" -f4)") tar -C /usr/local/bin -xJf recyclarr*.tar.xz mkdir -p /root/.config/recyclarr recyclarr config create diff --git a/install/runtipi-install.sh b/install/runtipi-install.sh index 4dec0ae26..d0257c8d3 100644 --- a/install/runtipi-install.sh +++ b/install/runtipi-install.sh @@ -18,7 +18,7 @@ DOCKER_CONFIG_PATH='/etc/docker/daemon.json' mkdir -p "$(dirname "$DOCKER_CONFIG_PATH")" echo -e '{\n "log-driver": "journald"\n}' >"$DOCKER_CONFIG_PATH" cd /opt -curl -fsSL "https://raw.githubusercontent.com/runtipi/runtipi/master/scripts/install.sh" -o $(basename"https://raw.githubusercontent.com/runtipi/runtipi/master/scripts/install.sh") +curl -fsSL "https://raw.githubusercontent.com/runtipi/runtipi/master/scripts/install.sh" -o $(basename "https://raw.githubusercontent.com/runtipi/runtipi/master/scripts/install.sh") chmod +x install.sh $STD ./install.sh chmod 666 /opt/runtipi/state/settings.json diff --git a/install/rustdeskserver-install.sh b/install/rustdeskserver-install.sh index bd0813c17..e654ca06c 100644 --- a/install/rustdeskserver-install.sh +++ b/install/rustdeskserver-install.sh @@ -16,9 +16,9 @@ update_os msg_info "Setup RustDesk" RELEASE=$(curl -fsSL https://api.github.com/repos/rustdesk/rustdesk-server/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') TEMPDIR=$(mktemp -d) -curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbr_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename"https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbr_${RELEASE}_amd64.deb" -P $TEMPDIR") -curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbs_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename"https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbs_${RELEASE}_amd64.deb" -P $TEMPDIR") -curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-utils_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename"https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-utils_${RELEASE}_amd64.deb" -P $TEMPDIR") +curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbr_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbr_${RELEASE}_amd64.deb" -P $TEMPDIR") +curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbs_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbs_${RELEASE}_amd64.deb" -P $TEMPDIR") +curl -fsSL "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-utils_${RELEASE}_amd64.deb" -P $TEMPDIR" -o $(basename "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-utils_${RELEASE}_amd64.deb" -P $TEMPDIR") $STD dpkg -i $TEMPDIR/*.deb echo "${RELEASE}" >/opt/rustdesk.txt msg_ok "Setup RustDesk" diff --git a/install/seelf-install.sh b/install/seelf-install.sh index c5ca9cd7a..e45e5dd25 100644 --- a/install/seelf-install.sh +++ b/install/seelf-install.sh @@ -42,7 +42,7 @@ msg_ok "Installed Node.js" msg_info "Setting up seelf. Patience" RELEASE=$(curl -fsSL https://api.github.com/repos/YuukanOO/seelf/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/YuukanOO/seelf/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename"https://github.com/YuukanOO/seelf/archive/refs/tags/v${RELEASE}.tar.gz") +curl -fsSL "https://github.com/YuukanOO/seelf/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/YuukanOO/seelf/archive/refs/tags/v${RELEASE}.tar.gz") tar -xzf v${RELEASE}.tar.gz mv seelf-${RELEASE}/ /opt/seelf cd /opt/seelf diff --git a/install/semaphore-install.sh b/install/semaphore-install.sh index da3b5c855..1bd903436 100644 --- a/install/semaphore-install.sh +++ b/install/semaphore-install.sh @@ -30,7 +30,7 @@ msg_info "Setup Semaphore" RELEASE=$(curl -fsSL https://api.github.com/repos/semaphoreui/semaphore/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') mkdir -p /opt/semaphore cd /opt/semaphore -curl -fsSL "https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb" -o $(basename"https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb") +curl -fsSL "https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb" -o $(basename "https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb") $STD dpkg -i semaphore_${RELEASE}_linux_amd64.deb SEM_HASH=$(openssl rand -base64 32) diff --git a/install/silverbullet-install.sh b/install/silverbullet-install.sh index ece9a33fc..3afd2f890 100644 --- a/install/silverbullet-install.sh +++ b/install/silverbullet-install.sh @@ -16,7 +16,7 @@ update_os 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") +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 chmod +x /opt/silverbullet/bin/silverbullet echo "${RELEASE}" >/opt/${APPLICATION}_version.txt diff --git a/install/spoolman-install.sh b/install/spoolman-install.sh index 5371196c6..c3be0d760 100644 --- a/install/spoolman-install.sh +++ b/install/spoolman-install.sh @@ -34,7 +34,7 @@ msg_ok "Setup Python3" 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") +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 rm -rf spoolman.zip cd spoolman diff --git a/install/stirling-pdf-install.sh b/install/stirling-pdf-install.sh index 93b6383b9..64f47f276 100644 --- a/install/stirling-pdf-install.sh +++ b/install/stirling-pdf-install.sh @@ -55,7 +55,7 @@ msg_ok "Installed Python Dependencies" msg_info "Installing Azul Zulu" curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xB1998361219BD9C9" -o "/etc/apt/trusted.gpg.d/zulu-repo.asc" -curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o $(basename"https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb") +curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o $(basename "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb") $STD dpkg -i zulu-repo_1.0.0-3_all.deb $STD apt-get update $STD apt-get -y install zulu17-jdk @@ -76,7 +76,7 @@ msg_ok "Installed Language Packs" msg_info "Installing Stirling-PDF (Additional Patience)" RELEASE=$(curl -fsSL https://api.github.com/repos/Stirling-Tools/Stirling-PDF/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename"https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v${RELEASE}.tar.gz") +curl -fsSL "https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v${RELEASE}.tar.gz") tar -xzf v${RELEASE}.tar.gz cd Stirling-PDF-$RELEASE chmod +x ./gradlew diff --git a/install/suwayomiserver-install.sh b/install/suwayomiserver-install.sh index df9f8aab8..9a23c147d 100644 --- a/install/suwayomiserver-install.sh +++ b/install/suwayomiserver-install.sh @@ -22,7 +22,7 @@ msg_ok "Installed Dependencies" msg_info "Settting up Suwayomi-Server" URL=$(curl -fsSL https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "browser_download_url" | awk '{print substr($2, 2, length($2)-2) }' | tail -n+2 | head -n 1) RELEASE=$(curl -fsSL https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL "$URL" -o $(basename"$URL") +curl -fsSL "$URL" -o $(basename "$URL") $STD dpkg -i *.deb echo ${RELEASE} >/opt/suwayomi-server_version.txt msg_ok "Done setting up Suwayomi-Server" diff --git a/install/tasmoadmin-install.sh b/install/tasmoadmin-install.sh index 1390e9ef0..45b99527f 100644 --- a/install/tasmoadmin-install.sh +++ b/install/tasmoadmin-install.sh @@ -25,7 +25,7 @@ $STD apt-get install -y git msg_ok "Installed Dependencies" msg_info "Installing TasmoAdmin" -curl -fsSL "https://github.com/TasmoAdmin/TasmoAdmin/releases/download/v3.1.1/tasmoadmin_v3.1.1.tar.gz" -o $(basename"https://github.com/TasmoAdmin/TasmoAdmin/releases/download/v3.1.1/tasmoadmin_v3.1.1.tar.gz") +curl -fsSL "https://github.com/TasmoAdmin/TasmoAdmin/releases/download/v3.1.1/tasmoadmin_v3.1.1.tar.gz" -o $(basename "https://github.com/TasmoAdmin/TasmoAdmin/releases/download/v3.1.1/tasmoadmin_v3.1.1.tar.gz") tar -xzf tasmoadmin_v3.1.1.tar.gz -C /var/www/ rm -rf tasmoadmin_v3.1.1.tar.gz /etc/php/8.2/apache2/conf.d/10-opcache.ini chown -R www-data:www-data /var/www/tasmoadmin diff --git a/install/tdarr-install.sh b/install/tdarr-install.sh index 59ac8d28b..cc16b657f 100644 --- a/install/tdarr-install.sh +++ b/install/tdarr-install.sh @@ -32,7 +32,7 @@ msg_info "Installing Tdarr" mkdir -p /opt/tdarr cd /opt/tdarr RELEASE=$(curl -fsSL https://f000.backblazeb2.com/file/tdarrs/versions.json | grep -oP '(?<="Tdarr_Updater": ")[^"]+' | grep linux_x64 | head -n 1) -curl -fsSL "$RELEASE" -o $(basename"$RELEASE") +curl -fsSL "$RELEASE" -o $(basename "$RELEASE") $STD unzip Tdarr_Updater.zip rm -rf Tdarr_Updater.zip chmod +x Tdarr_Updater diff --git a/install/teddycloud-install.sh b/install/teddycloud-install.sh index c00ac22b8..7794702bb 100644 --- a/install/teddycloud-install.sh +++ b/install/teddycloud-install.sh @@ -23,7 +23,7 @@ msg_ok "Installed Dependencies" 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") +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" ln -fns "/opt/teddycloud-${VERSION}" /opt/teddycloud rm -rf teddycloud.amd64.release_v${VERSION}.zip diff --git a/install/the-lounge-install.sh b/install/the-lounge-install.sh index f3084630f..4fe52a7e5 100644 --- a/install/the-lounge-install.sh +++ b/install/the-lounge-install.sh @@ -35,7 +35,7 @@ msg_ok "Installed Node.js" msg_info "Installing The Lounge" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/thelounge/thelounge-deb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/thelounge/thelounge-deb/releases/download/v${RELEASE}/thelounge_${RELEASE}_all.deb" -o $(basename"https://github.com/thelounge/thelounge-deb/releases/download/v${RELEASE}/thelounge_${RELEASE}_all.deb") +curl -fsSL "https://github.com/thelounge/thelounge-deb/releases/download/v${RELEASE}/thelounge_${RELEASE}_all.deb" -o $(basename "https://github.com/thelounge/thelounge-deb/releases/download/v${RELEASE}/thelounge_${RELEASE}_all.deb") $STD dpkg -i ./thelounge_${RELEASE}_all.deb echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" msg_ok "Installed The Lounge" diff --git a/install/tianji-install.sh b/install/tianji-install.sh index 9d5cfcc65..44935ddc7 100644 --- a/install/tianji-install.sh +++ b/install/tianji-install.sh @@ -57,7 +57,7 @@ msg_ok "Set up PostgreSQL" 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") +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 mv tianji-${RELEASE} /opt/tianji cd tianji diff --git a/install/traccar-install.sh b/install/traccar-install.sh index 25e0a5f5a..3cf775b0f 100644 --- a/install/traccar-install.sh +++ b/install/traccar-install.sh @@ -15,7 +15,7 @@ update_os RELEASE=$(curl -fsSL https://api.github.com/repos/traccar/traccar/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing Traccar v${RELEASE}" -curl -fsSL "https://github.com/traccar/traccar/releases/download/v${RELEASE}/traccar-linux-64-${RELEASE}.zip" -o $(basename"https://github.com/traccar/traccar/releases/download/v${RELEASE}/traccar-linux-64-${RELEASE}.zip") +curl -fsSL "https://github.com/traccar/traccar/releases/download/v${RELEASE}/traccar-linux-64-${RELEASE}.zip" -o $(basename "https://github.com/traccar/traccar/releases/download/v${RELEASE}/traccar-linux-64-${RELEASE}.zip") $STD unzip traccar-linux-64-${RELEASE}.zip $STD ./traccar.run systemctl enable -q --now traccar diff --git a/install/traefik-install.sh b/install/traefik-install.sh index 20790a068..6701ec41d 100644 --- a/install/traefik-install.sh +++ b/install/traefik-install.sh @@ -21,7 +21,7 @@ msg_ok "Installed Dependencies" RELEASE=$(curl -fsSL https://api.github.com/repos/traefik/traefik/releases | grep -oP '"tag_name":\s*"v\K[\d.]+?(?=")' | sort -V | tail -n 1) msg_info "Installing Traefik v${RELEASE}" mkdir -p /etc/traefik/{conf.d,ssl} -curl -fsSL "https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz" -o $(basename"https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz") +curl -fsSL "https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz" -o $(basename "https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz") tar -C /tmp -xzf traefik*.tar.gz mv /tmp/traefik /usr/bin/ rm -rf traefik*.tar.gz diff --git a/install/trilium-install.sh b/install/trilium-install.sh index 6fa99c8aa..805a7fd44 100644 --- a/install/trilium-install.sh +++ b/install/trilium-install.sh @@ -16,7 +16,7 @@ update_os msg_info "Setup TriliumNext" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/TriliumNext/Notes/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/TriliumNext/Notes/releases/download/v${RELEASE}/TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz" -o $(basename"https://github.com/TriliumNext/Notes/releases/download/v${RELEASE}/TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz") +curl -fsSL "https://github.com/TriliumNext/Notes/releases/download/v${RELEASE}/TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz" -o $(basename "https://github.com/TriliumNext/Notes/releases/download/v${RELEASE}/TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz") tar -xf TriliumNextNotes-Server-v${RELEASE}-linux-x64.tar.xz mv TriliumNextNotes-Server-$RELEASE-linux-x64 /opt/trilium echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" diff --git a/install/typesense-install.sh b/install/typesense-install.sh index 384a0e034..7512887ce 100644 --- a/install/typesense-install.sh +++ b/install/typesense-install.sh @@ -16,7 +16,7 @@ update_os msg_info "Installing TypeSense" RELEASE=$(curl -fsSL https://api.github.com/repos/typesense/typesense/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') cd /opt -curl -fsSL "https://dl.typesense.org/releases/${RELEASE}/typesense-server-${RELEASE}-amd64.deb" -o $(basename"https://dl.typesense.org/releases/${RELEASE}/typesense-server-${RELEASE}-amd64.deb") +curl -fsSL "https://dl.typesense.org/releases/${RELEASE}/typesense-server-${RELEASE}-amd64.deb" -o $(basename "https://dl.typesense.org/releases/${RELEASE}/typesense-server-${RELEASE}-amd64.deb") $STD apt install -y /opt/typesense-server-${RELEASE}-amd64.deb echo 'enable-cors = true' >>/etc/typesense/typesense-server.ini echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" diff --git a/install/unifi-install.sh b/install/unifi-install.sh index dfdb1010f..aa0c15d83 100644 --- a/install/unifi-install.sh +++ b/install/unifi-install.sh @@ -29,7 +29,7 @@ if ! grep -q -m1 'avx[^ ]*' /proc/cpuinfo; then msg_ok "No AVX Support Detected" msg_info "Installing MongoDB 4.4" if ! dpkg -l | grep -q "libssl1.1"; then - curl -fsSL "http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u6_amd64.deb" -o $(basename"http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u6_amd64.deb") + curl -fsSL "http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u6_amd64.deb" -o $(basename "http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u6_amd64.deb") $STD dpkg -i libssl1.1_1.1.1n-0+deb10u6_amd64.deb fi curl -fsSL "https://www.mongodb.org/static/pgp/server-4.4.asc" | gpg --dearmor >/usr/share/keyrings/mongodb-server-4.4.gpg diff --git a/install/victoriametrics-install.sh b/install/victoriametrics-install.sh index 206332f2e..3bc53732a 100644 --- a/install/victoriametrics-install.sh +++ b/install/victoriametrics-install.sh @@ -18,8 +18,8 @@ temp_dir=$(mktemp -d) cd $temp_dir mkdir -p /opt/victoriametrics/data RELEASE=$(curl -fsSL https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/victoria-metrics-linux-amd64-v${RELEASE}.tar.gz" -o $(basename"https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/victoria-metrics-linux-amd64-v${RELEASE}.tar.gz") -curl -fsSL "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/vmutils-linux-amd64-v${RELEASE}.tar.gz" -o $(basename"https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/vmutils-linux-amd64-v${RELEASE}.tar.gz") +curl -fsSL "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/victoria-metrics-linux-amd64-v${RELEASE}.tar.gz" -o $(basename "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/victoria-metrics-linux-amd64-v${RELEASE}.tar.gz") +curl -fsSL "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/vmutils-linux-amd64-v${RELEASE}.tar.gz" -o $(basename "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${RELEASE}/vmutils-linux-amd64-v${RELEASE}.tar.gz") tar -xf victoria-metrics-linux-amd64-v${RELEASE}.tar.gz -C /opt/victoriametrics tar -xf vmutils-linux-amd64-v${RELEASE}.tar.gz -C /opt/victoriametrics chmod +x /opt/victoriametrics/* diff --git a/install/vikunja-install.sh b/install/vikunja-install.sh index 8310bd2a6..28489ea1f 100644 --- a/install/vikunja-install.sh +++ b/install/vikunja-install.sh @@ -20,7 +20,7 @@ msg_ok "Installed Dependencies" msg_info "Setup Vikunja (Patience)" cd /opt RELEASE=$(curl -fsSL https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1) -curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o $(basename"https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb") +curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o $(basename "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb") $STD dpkg -i vikunja-$RELEASE-amd64.deb sed -i 's|^ timezone: .*| timezone: UTC|' /etc/vikunja/config.yml sed -i 's|"./vikunja.db"|"/etc/vikunja/vikunja.db"|' /etc/vikunja/config.yml diff --git a/install/wallos-install.sh b/install/wallos-install.sh index fc91addef..e74e152f3 100644 --- a/install/wallos-install.sh +++ b/install/wallos-install.sh @@ -24,7 +24,7 @@ msg_ok "Installed Dependencies" 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") +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 mv Wallos-${RELEASE} /opt/wallos cd /opt/wallos diff --git a/install/watchyourlan-install.sh b/install/watchyourlan-install.sh index efff0e1e3..1306adf2b 100644 --- a/install/watchyourlan-install.sh +++ b/install/watchyourlan-install.sh @@ -19,7 +19,7 @@ msg_ok "Installed Dependencies" msg_info "Installing WatchYourLAN" RELEASE=$(curl -fsSL https://api.github.com/repos/aceberg/WatchYourLAN/releases/latest | grep -o '"tag_name": *"[^"]*"' | cut -d '"' -f 4) -curl -fsSL "https://github.com/aceberg/WatchYourLAN/releases/download/$RELEASE/watchyourlan_${RELEASE}_linux_amd64.deb" -o $(basename"https://github.com/aceberg/WatchYourLAN/releases/download/$RELEASE/watchyourlan_${RELEASE}_linux_amd64.deb") +curl -fsSL "https://github.com/aceberg/WatchYourLAN/releases/download/$RELEASE/watchyourlan_${RELEASE}_linux_amd64.deb" -o $(basename "https://github.com/aceberg/WatchYourLAN/releases/download/$RELEASE/watchyourlan_${RELEASE}_linux_amd64.deb") $STD dpkg -i watchyourlan_${RELEASE}_linux_amd64.deb rm watchyourlan_${RELEASE}_linux_amd64.deb mkdir /data diff --git a/install/wavelog-install.sh b/install/wavelog-install.sh index dc3c5211a..4ddde5081 100644 --- a/install/wavelog-install.sh +++ b/install/wavelog-install.sh @@ -43,7 +43,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") +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 mv wavelog-${RELEASE}/ /opt/wavelog chown -R www-data:www-data /opt/wavelog/ diff --git a/install/wger-install.sh b/install/wger-install.sh index c528e0152..0f5560762 100644 --- a/install/wger-install.sh +++ b/install/wger-install.sh @@ -49,7 +49,7 @@ chmod o+w /home/wger/media temp_dir=$(mktemp -d) cd $temp_dir RELEASE=$(curl -fsSL https://api.github.com/repos/wger-project/wger/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') -curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o $(basename"https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz") +curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o $(basename "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz") tar xzf $RELEASE.tar.gz mv wger-$RELEASE /home/wger/src cd /home/wger/src diff --git a/install/wordpress-install.sh b/install/wordpress-install.sh index 9e074e34b..a6d68779d 100644 --- a/install/wordpress-install.sh +++ b/install/wordpress-install.sh @@ -38,7 +38,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") +curl -fsSL "https://wordpress.org/latest.zip" -o $(basename "https://wordpress.org/latest.zip") unzip -q latest.zip chown -R www-data:www-data wordpress/ cd /var/www/html/wordpress diff --git a/install/zabbix-install.sh b/install/zabbix-install.sh index 48cc53d4d..462635e23 100644 --- a/install/zabbix-install.sh +++ b/install/zabbix-install.sh @@ -15,7 +15,7 @@ update_os msg_info "Installing Zabbix" cd /tmp -curl -fsSL "https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb" -o $(basename"https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb") +curl -fsSL "https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb" -o $(basename "https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb") $STD dpkg -i /tmp/zabbix-release_latest+debian12_all.deb $STD apt-get update $STD apt-get install -y zabbix-server-pgsql zabbix-frontend-php php8.2-pgsql zabbix-apache-conf zabbix-sql-scripts diff --git a/install/zigbee2mqtt-install.sh b/install/zigbee2mqtt-install.sh index 403167d65..04da3e9a7 100644 --- a/install/zigbee2mqtt-install.sh +++ b/install/zigbee2mqtt-install.sh @@ -41,7 +41,7 @@ msg_ok "Installed pnpm" 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") +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 mv zigbee2mqtt-${RELEASE} /opt/zigbee2mqtt cd /opt/zigbee2mqtt/data diff --git a/install/zipline-install.sh b/install/zipline-install.sh index a9dc4040e..c88958bfe 100644 --- a/install/zipline-install.sh +++ b/install/zipline-install.sh @@ -52,7 +52,7 @@ msg_ok "Set up PostgreSQL" 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") +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 mv zipline-${RELEASE} /opt/zipline cd /opt/zipline diff --git a/install/zoraxy-install.sh b/install/zoraxy-install.sh index a9c5bc27c..94697047f 100644 --- a/install/zoraxy-install.sh +++ b/install/zoraxy-install.sh @@ -15,7 +15,7 @@ update_os msg_info "Installing Zoraxy (Patience)" RELEASE=$(curl -fsSL https://api.github.com/repos/tobychui/zoraxy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL "https://github.com/tobychui/zoraxy/releases/download/${RELEASE}/zoraxy_linux_amd64" -o $(basename"https://github.com/tobychui/zoraxy/releases/download/${RELEASE}/zoraxy_linux_amd64") +curl -fsSL "https://github.com/tobychui/zoraxy/releases/download/${RELEASE}/zoraxy_linux_amd64" -o $(basename "https://github.com/tobychui/zoraxy/releases/download/${RELEASE}/zoraxy_linux_amd64") mkdir -p /opt/zoraxy mv zoraxy_linux_amd64 /opt/zoraxy/zoraxy chmod +x /opt/zoraxy/zoraxy diff --git a/install/zwave-js-ui-install.sh b/install/zwave-js-ui-install.sh index b3389aedb..7c7d3b7a3 100644 --- a/install/zwave-js-ui-install.sh +++ b/install/zwave-js-ui-install.sh @@ -18,7 +18,7 @@ mkdir -p /opt/zwave-js-ui 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") +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 cat </opt/.env ZWAVEJS_EXTERNAL_CONFIG=/opt/zwave_store/.config-db diff --git a/misc/microcode.sh b/misc/microcode.sh index 35017e68a..385eb88cf 100644 --- a/misc/microcode.sh +++ b/misc/microcode.sh @@ -72,7 +72,7 @@ intel() { } msg_info "Downloading the Intel Processor Microcode Package $microcode" - curl -fsSL "http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/$microcode" -o $(basename"http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/$microcode") + curl -fsSL "http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/$microcode" -o $(basename "http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/$microcode") msg_ok "Downloaded the Intel Processor Microcode Package $microcode" msg_info "Installing $microcode (Patience)" @@ -116,7 +116,7 @@ amd() { } msg_info "Downloading the AMD Processor Microcode Package $microcode" - curl -fsSL "https://ftp.debian.org/debian/pool/non-free-firmware/a/amd64-microcode/$microcode" -o $(basename"https://ftp.debian.org/debian/pool/non-free-firmware/a/amd64-microcode/$microcode") + curl -fsSL "https://ftp.debian.org/debian/pool/non-free-firmware/a/amd64-microcode/$microcode" -o $(basename "https://ftp.debian.org/debian/pool/non-free-firmware/a/amd64-microcode/$microcode") msg_ok "Downloaded the AMD Processor Microcode Package $microcode" msg_info "Installing $microcode (Patience)" diff --git a/misc/netdata.sh b/misc/netdata.sh index 97dadc889..f8debbc1d 100644 --- a/misc/netdata.sh +++ b/misc/netdata.sh @@ -60,7 +60,7 @@ install() { msg_info "Setting up repository" $STD apt-get install -y debian-keyring - curl -fsSL "https://repo.netdata.cloud/repos/repoconfig/debian/bookworm/netdata-repo_5-1+debian12_all.deb" -o $(basename"https://repo.netdata.cloud/repos/repoconfig/debian/bookworm/netdata-repo_5-1+debian12_all.deb") + curl -fsSL "https://repo.netdata.cloud/repos/repoconfig/debian/bookworm/netdata-repo_5-1+debian12_all.deb" -o $(basename "https://repo.netdata.cloud/repos/repoconfig/debian/bookworm/netdata-repo_5-1+debian12_all.deb") $STD dpkg -i netdata-repo_5-1+debian12_all.deb rm -rf netdata-repo_5-1+debian12_all.deb msg_ok "Set up repository" diff --git a/misc/olivetin.sh b/misc/olivetin.sh index df5a97591..6caed1562 100644 --- a/misc/olivetin.sh +++ b/misc/olivetin.sh @@ -51,7 +51,7 @@ function msg_ok() { } msg_info "Installing ${APP}" -curl -fsSL "https://github.com/OliveTin/OliveTin/releases/latest/download/OliveTin_linux_amd64.deb" -o $(basename"https://github.com/OliveTin/OliveTin/releases/latest/download/OliveTin_linux_amd64.deb") +curl -fsSL "https://github.com/OliveTin/OliveTin/releases/latest/download/OliveTin_linux_amd64.deb" -o $(basename "https://github.com/OliveTin/OliveTin/releases/latest/download/OliveTin_linux_amd64.deb") dpkg -i OliveTin_linux_amd64.deb &>/dev/null systemctl enable --now OliveTin &>/dev/null rm OliveTin_linux_amd64.deb diff --git a/misc/pbs_microcode.sh b/misc/pbs_microcode.sh index 79735fe5f..694649e35 100644 --- a/misc/pbs_microcode.sh +++ b/misc/pbs_microcode.sh @@ -89,7 +89,7 @@ intel() { } msg_info "Downloading Intel processor microcode package $microcode" - curl -fsSL "http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/$microcode" -o $(basename"http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/$microcode") + curl -fsSL "http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/$microcode" -o $(basename "http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/$microcode") msg_ok "Downloaded Intel processor microcode package $microcode" msg_info "Installing $microcode (this might take a while)" @@ -136,7 +136,7 @@ amd() { } msg_info "Downloading AMD processor microcode package $microcode" - curl -fsSL "https://ftp.debian.org/debian/pool/non-free-firmware/a/amd64-microcode/$microcode" -o $(basename"https://ftp.debian.org/debian/pool/non-free-firmware/a/amd64-microcode/$microcode") + curl -fsSL "https://ftp.debian.org/debian/pool/non-free-firmware/a/amd64-microcode/$microcode" -o $(basename "https://ftp.debian.org/debian/pool/non-free-firmware/a/amd64-microcode/$microcode") msg_ok "Downloaded AMD processor microcode package $microcode" msg_info "Installing $microcode (this might take a while)" diff --git a/misc/webmin.sh b/misc/webmin.sh index 87a5ead73..b313144bb 100644 --- a/misc/webmin.sh +++ b/misc/webmin.sh @@ -48,7 +48,7 @@ msg_ok "Installed Prerequisites" LATEST=$(curl -fsSLL https://api.github.com/repos/webmin/webmin/releases/latest | grep '"tag_name":' | cut -d'"' -f4) msg_info "Downloading Webmin" -curl -fsSL "https://github.com/webmin/webmin/releases/download/$LATEST/webmin_${LATEST}_all.deb" -o $(basename"https://github.com/webmin/webmin/releases/download/$LATEST/webmin_${LATEST}_all.deb") +curl -fsSL "https://github.com/webmin/webmin/releases/download/$LATEST/webmin_${LATEST}_all.deb" -o $(basename "https://github.com/webmin/webmin/releases/download/$LATEST/webmin_${LATEST}_all.deb") msg_ok "Downloaded Webmin" msg_info "Installing Webmin"