From ece3ad2b1369524e54a1ef6178646ab174f17a1b Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 24 Feb 2025 12:49:16 +0100 Subject: [PATCH] Feature: Use Verbose Mode for all Scripts (removed &>/dev/null) (#2596) * Feature: Use Verbose Mode for all Scripts (removed &>/dev/null) * Update crafty-controller.sh --- ct/2fauth.sh | 6 +++--- ct/actualbudget.sh | 6 +++--- ct/adventurelog.sh | 12 +++++------ ct/alpine-it-tools.sh | 2 +- ct/apt-cacher-ng.sh | 4 ++-- ct/aria2.sh | 4 ++-- ct/authelia.sh | 10 +++++----- ct/authentik.sh | 18 ++++++++--------- ct/bazarr.sh | 4 ++-- ct/blocky.sh | 4 ++-- ct/bookstack.sh | 10 +++++----- ct/caddy.sh | 4 ++-- ct/calibre-web.sh | 4 ++-- ct/casaos.sh | 4 ++-- ct/changedetection.sh | 26 ++++++++++++------------ ct/checkmk.sh | 14 ++++++------- ct/cloudflared.sh | 4 ++-- ct/cockpit.sh | 32 +++++++++++++++--------------- ct/cronicle.sh | 34 ++++++++++++++++---------------- ct/cross-seed.sh | 2 +- ct/daemonsync.sh | 4 ++-- ct/debian.sh | 4 ++-- ct/deconz.sh | 4 ++-- ct/deluge.sh | 2 +- ct/docker.sh | 4 ++-- ct/docmost.sh | 4 ++-- ct/dotnetaspwebapi.sh | 4 ++-- ct/elementsynapse.sh | 4 ++-- ct/emby.sh | 4 ++-- ct/emqx.sh | 4 ++-- ct/esphome.sh | 4 ++-- ct/evcc.sh | 4 ++-- ct/excalidraw.sh | 2 +- ct/fhem.sh | 4 ++-- ct/firefly.sh | 14 ++++++------- ct/ghost.sh | 2 +- ct/grafana.sh | 4 ++-- ct/graylog.sh | 4 ++-- ct/grist.sh | 6 +++--- ct/heimdall-dashboard.sh | 4 ++-- ct/hoarder.sh | 10 +++++----- ct/homarr.sh | 6 +++--- ct/homeassistant-core.sh | 24 +++++++++++----------- ct/homeassistant.sh | 16 +++++++-------- ct/homebridge.sh | 4 ++-- ct/homepage.sh | 10 +++++----- ct/homer.sh | 2 +- ct/hyperhdr.sh | 4 ++-- ct/hyperion.sh | 4 ++-- ct/influxdb.sh | 4 ++-- ct/inspircd.sh | 2 +- ct/iobroker.sh | 4 ++-- ct/jellyfin.sh | 6 +++--- ct/jellyseerr.sh | 12 +++++------ ct/jenkins.sh | 4 ++-- ct/jupyternotebook.sh | 6 +++--- ct/kavita.sh | 2 +- ct/keycloak.sh | 4 ++-- ct/kimai.sh | 4 ++-- ct/koillection.sh | 10 +++++----- ct/kometa.sh | 2 +- ct/komodo.sh | 2 +- ct/kubo.sh | 4 ++-- ct/lazylibrarian.sh | 2 +- ct/lidarr.sh | 4 ++-- ct/linkwarden.sh | 10 +++++----- ct/listmonk.sh | 2 +- ct/magicmirror.sh | 2 +- ct/mariadb.sh | 4 ++-- ct/mattermost.sh | 4 ++-- ct/memos.sh | 6 +++--- ct/meshcentral.sh | 4 ++-- ct/metube.sh | 10 +++++----- ct/mongodb.sh | 4 ++-- ct/monica.sh | 8 ++++---- ct/motioneye.sh | 2 +- ct/mqtt.sh | 4 ++-- ct/myspeed.sh | 2 +- ct/mysql.sh | 4 ++-- ct/n8n.sh | 4 ++-- ct/navidrome.sh | 2 +- ct/neo4j.sh | 4 ++-- ct/netbox.sh | 2 +- ct/nextcloudpi.sh | 4 ++-- ct/nextpvr.sh | 6 +++--- ct/nginxproxymanager.sh | 20 +++++++++---------- ct/node-red.sh | 6 +++--- ct/nodebb.sh | 2 +- ct/notifiarr.sh | 4 ++-- ct/ntfy.sh | 4 ++-- ct/nxwitness.sh | 2 +- ct/nzbget.sh | 4 ++-- ct/octoprint.sh | 2 +- ct/ollama.sh | 4 ++-- ct/omv.sh | 4 ++-- ct/onedev.sh | 2 +- ct/opengist.sh | 8 ++++---- ct/openhab.sh | 4 ++-- ct/openwebui.sh | 6 +++--- ct/overseerr.sh | 6 +++--- ct/owncast.sh | 4 ++-- ct/paperless-ai.sh | 2 +- ct/paperless-ngx.sh | 10 +++++----- ct/part-db.sh | 10 +++++----- ct/paymenter.sh | 2 +- ct/peanut.sh | 4 ++-- ct/pf2etools.sh | 8 ++++---- ct/photoprism.sh | 2 +- ct/pingvin.sh | 8 ++++---- ct/plex.sh | 4 ++-- ct/podman-homeassistant.sh | 20 +++++++++---------- ct/podman.sh | 4 ++-- ct/postgresql.sh | 4 ++-- ct/prometheus-pve-exporter.sh | 2 +- ct/proxmox-backup-server.sh | 4 ++-- ct/proxmox-datacenter-manager.sh | 4 ++-- ct/proxmox-mail-gateway.sh | 4 ++-- ct/ps5-mqtt.sh | 4 ++-- ct/qbittorrent.sh | 4 ++-- ct/rabbitmq.sh | 2 +- ct/rdtclient.sh | 4 ++-- ct/readarr.sh | 4 ++-- ct/rtsptoweb.sh | 4 ++-- ct/rustdeskserver.sh | 2 +- ct/sabnzbd.sh | 6 +++--- ct/seelf.sh | 2 +- ct/semaphore.sh | 2 +- ct/sftpgo.sh | 4 ++-- ct/smokeping.sh | 4 ++-- ct/snipeit.sh | 20 +++++++++---------- ct/spoolman.sh | 2 +- ct/sqlserver2022.sh | 4 ++-- ct/stirling-pdf.sh | 6 +++--- ct/syncthing.sh | 4 ++-- ct/tandoor.sh | 14 ++++++------- ct/tasmoadmin.sh | 4 ++-- ct/tasmocompiler.sh | 6 +++--- ct/tautulli.sh | 4 ++-- ct/tdarr.sh | 4 ++-- ct/technitiumdns.sh | 8 ++++---- ct/the-lounge.sh | 2 +- ct/tianji.sh | 14 ++++++------- ct/transmission.sh | 4 ++-- ct/typesense.sh | 4 ++-- ct/ubuntu.sh | 4 ++-- ct/umbrel.sh | 4 ++-- ct/unbound.sh | 4 ++-- ct/unifi.sh | 4 ++-- ct/unmanic.sh | 4 ++-- ct/uptimekuma.sh | 14 ++++++------- ct/urbackupserver.sh | 4 ++-- ct/vaultwarden.sh | 10 +++++----- ct/vikunja.sh | 2 +- ct/wallos.sh | 2 +- ct/watcharr.sh | 4 ++-- ct/whisparr.sh | 4 ++-- ct/whoogle.sh | 2 +- ct/wikijs.sh | 2 +- ct/yunohost.sh | 4 ++-- ct/zabbix.sh | 6 +++--- ct/zammad.sh | 14 ++++++------- ct/zerotier-one.sh | 2 +- ct/zigbee2mqtt.sh | 6 +++--- ct/zipline.sh | 6 +++--- ct/zitadel.sh | 2 +- 165 files changed, 475 insertions(+), 475 deletions(-) diff --git a/ct/2fauth.sh b/ct/2fauth.sh index 61f94c49..bb68cb3c 100644 --- a/ct/2fauth.sh +++ b/ct/2fauth.sh @@ -35,8 +35,8 @@ function update_script() { if [[ "${RELEASE}" != "$(cat /opt/2fauth_version.txt)" ]] || [[ ! -f /opt/2fauth_version.txt ]]; then msg_info "Updating $APP to ${RELEASE}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade # Creating Backup msg_info "Creating Backup" @@ -55,7 +55,7 @@ function update_script() { chmod -R 755 "/opt/2fauth" export COMPOSER_ALLOW_SUPERUSER=1 - composer install --no-dev --prefer-source &>/dev/null + $STD composer install --no-dev --prefer-source php artisan 2fauth:install diff --git a/ct/actualbudget.sh b/ct/actualbudget.sh index 34a405a8..85ca8733 100644 --- a/ct/actualbudget.sh +++ b/ct/actualbudget.sh @@ -42,13 +42,13 @@ function update_script() { wget -q "https://github.com/actualbudget/actual-server/archive/refs/tags/v${RELEASE}.tar.gz" mv /opt/actualbudget /opt/actualbudget_bak - tar -xzf "v${RELEASE}.tar.gz" &>/dev/null + $STD tar -xzf "v${RELEASE}.tar.gz" mv *ctual-server-* /opt/actualbudget mkdir -p /opt/actualbudget-data/{server-files,upload,migrate,user-files,migrations,config} for dir in server-files .migrate user-files migrations; do if [[ -d /opt/actualbudget_bak/$dir ]]; then - mv /opt/actualbudget_bak/$dir/* /opt/actualbudget-data/$dir/ 2>/dev/null || true + mv /opt/actualbudget_bak/$dir/* /opt/actualbudget-data/$dir/ || true fi done if [[ -f /opt/actualbudget-data/migrate/.migrations ]]; then @@ -74,7 +74,7 @@ ACTUAL_HTTPS_CERT=/opt/actualbudget/selfhost.crt EOF fi cd /opt/actualbudget - yarn install &>/dev/null + $STD yarn install echo "${RELEASE}" > /opt/actualbudget_version.txt msg_ok "Updated ${APP}" diff --git a/ct/adventurelog.sh b/ct/adventurelog.sh index 57ebda10..990790ca 100644 --- a/ct/adventurelog.sh +++ b/ct/adventurelog.sh @@ -43,15 +43,15 @@ function update_script() { mv /opt/adventurelog-backup/backend/server/.env /opt/adventurelog/backend/server/.env mv /opt/adventurelog-backup/backend/server/media /opt/adventurelog/backend/server/media cd /opt/adventurelog/backend/server - pip install --upgrade pip &>/dev/null - pip install -r requirements.txt &>/dev/null - python3 manage.py collectstatic --noinput &>/dev/null - python3 manage.py migrate &>/dev/null + $STD pip install --upgrade pip + $STD pip install -r requirements.txt + $STD python3 manage.py collectstatic --noinput + $STD python3 manage.py migrate mv /opt/adventurelog-backup/frontend/.env /opt/adventurelog/frontend/.env cd /opt/adventurelog/frontend - pnpm install &>/dev/null - pnpm run build &>/dev/null + $STD pnpm install + $STD pnpm run build echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" diff --git a/ct/alpine-it-tools.sh b/ct/alpine-it-tools.sh index d24f267f..0aaa2a17 100644 --- a/ct/alpine-it-tools.sh +++ b/ct/alpine-it-tools.sh @@ -30,7 +30,7 @@ if [ ! -d /usr/share/nginx/html ]; then fi RELEASE=$(curl -s https://api.github.com/repos/CorentinTh/it-tools/releases/latest | grep '"tag_name":' | cut -d '"' -f4) -if [ "${RELEASE}" != "$(cat /opt/${APP}_version.txt 2>/dev/null)" ] || [ ! -f /opt/${APP}_version.txt ]; then +if [ "${RELEASE}" != "$(cat /opt/${APP}_version.txt" ] || [ ! -f /opt/${APP}_version.txt ]; then DOWNLOAD_URL="https://github.com/CorentinTh/it-tools/releases/download/${RELEASE}/it-tools-${RELEASE#v}.zip" msg_info "Updating ${APP} LXC" curl -fsSL -o it-tools.zip "$DOWNLOAD_URL" diff --git a/ct/apt-cacher-ng.sh b/ct/apt-cacher-ng.sh index 37ba6f51..0db7408b 100644 --- a/ct/apt-cacher-ng.sh +++ b/ct/apt-cacher-ng.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/aria2.sh b/ct/aria2.sh index d899d607..fe92d581 100644 --- a/ct/aria2.sh +++ b/ct/aria2.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/authelia.sh b/ct/authelia.sh index 5e4dd648..de6eb07c 100644 --- a/ct/authelia.sh +++ b/ct/authelia.sh @@ -29,14 +29,14 @@ function update_script() { RELEASE=$(curl -s https://api.github.com/repos/authelia/authelia/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') if [[ "${RELEASE}" != "$(/usr/bin/authelia -v | awk '{print substr($3, 2, length($2)) }' )" ]]; then msg_info "Updating $APP to ${RELEASE}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade wget -q "https://github.com/authelia/authelia/releases/download/${RELEASE}/authelia_${RELEASE}_amd64.deb" - dpkg -i "authelia_${RELEASE}_amd64.deb" &>/dev/null + $STD dpkg -i "authelia_${RELEASE}_amd64.deb" msg_info "Cleaning Up" rm -f "authelia_${RELEASE}_amd64.deb" - apt-get -y autoremove &>/dev/null - apt-get -y autoclean &>/dev/null + $STD apt-get -y autoremove + $STD apt-get -y autoclean msg_ok "Cleanup Completed" msg_ok "Updated $APP to ${RELEASE}" else diff --git a/ct/authentik.sh b/ct/authentik.sh index 44beaf8e..48e9a93b 100644 --- a/ct/authentik.sh +++ b/ct/authentik.sh @@ -40,11 +40,11 @@ function update_script() { tar -xzf authentik.tar.gz -C /opt/authentik --strip-components 1 --overwrite rm -rf authentik.tar.gz cd /opt/authentik/website - npm install &>/dev/null - npm run build-bundled &>/dev/null + $STD npm install + $STD npm run build-bundled cd /opt/authentik/web - npm install &>/dev/null - npm run build &>/dev/null + $STD npm install + $STD npm run build msg_ok "Built ${APP} website" msg_info "Building ${APP} server" @@ -56,15 +56,15 @@ function update_script() { msg_info "Installing Python Dependencies" cd /opt/authentik - poetry install --only=main --no-ansi --no-interaction --no-root &>/dev/null - poetry export --without-hashes --without-urls -f requirements.txt --output requirements.txt &>/dev/null - pip install --no-cache-dir -r requirements.txt &>/dev/null - pip install . &>/dev/null + $STD poetry install --only=main --no-ansi --no-interaction --no-root + $STD poetry export --without-hashes --without-urls -f requirements.txt --output requirements.txt + $STD pip install --no-cache-dir -r requirements.txt + $STD pip install . msg_ok "Installed Python Dependencies" msg_info "Updating ${APP} to v${RELEASE} (Patience)" cp -r /opt/authentik/authentik/blueprints /opt/authentik/blueprints - bash /opt/authentik/lifecycle/ak migrate &>/dev/null + $STD bash /opt/authentik/lifecycle/ak migrate echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to v${RELEASE}" diff --git a/ct/bazarr.sh b/ct/bazarr.sh index aec94f83..f628941f 100755 --- a/ct/bazarr.sh +++ b/ct/bazarr.sh @@ -25,8 +25,8 @@ function update_script() { check_container_resources if [[ ! -d /var/lib/bazarr/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/blocky.sh b/ct/blocky.sh index 70e9b472..9b5113a4 100644 --- a/ct/blocky.sh +++ b/ct/blocky.sh @@ -25,8 +25,8 @@ function update_script() { check_container_resources if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/bookstack.sh b/ct/bookstack.sh index f61806b1..bfd90689 100644 --- a/ct/bookstack.sh +++ b/ct/bookstack.sh @@ -39,12 +39,12 @@ function update_script() { unzip -q /opt/v${RELEASE}.zip -d /opt mv /opt/BookStack-${RELEASE} /opt/bookstack cp /opt/bookstack-backup/.env /opt/bookstack/.env - cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ 2>/dev/null || true - cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ 2>/dev/null || true - cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ 2>/dev/null || true + cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ || true + cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ || true + cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ || true cd /opt/bookstack - COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev &>/dev/null - php artisan migrate --force &>/dev/null + $STD COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev + $STD php artisan migrate --force chown www-data:www-data -R /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage chmod -R 755 /opt/bookstack /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads /opt/bookstack/storage chmod -R 775 /opt/bookstack/storage /opt/bookstack/bootstrap/cache /opt/bookstack/public/uploads diff --git a/ct/caddy.sh b/ct/caddy.sh index ab6c664e..a0f6e1df 100644 --- a/ct/caddy.sh +++ b/ct/caddy.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/calibre-web.sh b/ct/calibre-web.sh index a8e202d6..4e4001d1 100644 --- a/ct/calibre-web.sh +++ b/ct/calibre-web.sh @@ -115,10 +115,10 @@ function update_script() { echo "${options[*]}" ) echo $cps_options >/opt/calibre-web/options.txt - pip install --upgrade calibreweb[$cps_options] &>/dev/null + $STD pip install --upgrade calibreweb[$cps_options] else rm -rf /opt/calibre-web/options.txt - pip install --upgrade calibreweb &>/dev/null + $STD pip install --upgrade calibreweb fi msg_info "Starting ${APP}" diff --git a/ct/casaos.sh b/ct/casaos.sh index 68adb852..0191c412 100644 --- a/ct/casaos.sh +++ b/ct/casaos.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" exit } diff --git a/ct/changedetection.sh b/ct/changedetection.sh index 07fc43ea..04dc3654 100644 --- a/ct/changedetection.sh +++ b/ct/changedetection.sh @@ -31,31 +31,31 @@ function update_script() { if ! dpkg -s libjpeg-dev >/dev/null 2>&1; then msg_info "Installing Dependencies" - apt-get update - apt-get install -y libjpeg-dev + $STD apt-get update + $STD apt-get install -y libjpeg-dev msg_ok "Updated Dependencies" fi msg_info "Updating ${APP}" - pip3 install changedetection.io --upgrade &>/dev/null + $STD pip3 install changedetection.io --upgrade msg_ok "Updated ${APP}" msg_info "Updating Playwright" - pip3 install playwright --upgrade &>/dev/null + $STD pip3 install playwright --upgrade msg_ok "Updated Playwright" if [[ -f /etc/systemd/system/browserless.service ]]; then msg_info "Updating Browserless (Patience)" - git -C /opt/browserless/ fetch --all &>/dev/null - git -C /opt/browserless/ reset --hard origin/main &>/dev/null - npm update --prefix /opt/browserless &>/dev/null - /opt/browserless/node_modules/playwright-core/cli.js install --with-deps &>/dev/null + $STD git -C /opt/browserless/ fetch --all + $STD git -C /opt/browserless/ reset --hard origin/main + $STD npm update --prefix /opt/browserless + $STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps # Update Chrome separately, as it has to be done with the force option. Otherwise the installation of other browsers will not be done if Chrome is already installed. - /opt/browserless/node_modules/playwright-core/cli.js install --force chrome &>/dev/null - /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit &>/dev/null - npm run build --prefix /opt/browserless &>/dev/null - npm run build:function --prefix /opt/browserless &>/dev/null - npm prune production --prefix /opt/browserless &>/dev/null + $STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome + $STD /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit + $STD npm run build --prefix /opt/browserless + $STD npm run build:function --prefix /opt/browserless + $STD npm prune production --prefix /opt/browserless systemctl restart browserless msg_ok "Updated Browserless" else diff --git a/ct/checkmk.sh b/ct/checkmk.sh index 086216c3..931830dd 100644 --- a/ct/checkmk.sh +++ b/ct/checkmk.sh @@ -30,14 +30,14 @@ function update_script() { RELEASE=$(curl -fsSL https://api.github.com/repos/checkmk/checkmk/tags | grep "name" | awk '{print substr($2, 3, length($2)-4) }' | tr ' ' '\n' | grep -v '\-rc' | sort -V | tail -n 1) if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating ${APP} to v${RELEASE}" - omd stop monitoring &>/dev/null - omd cp monitoring monitoringbackup &>/dev/null + $STD omd stop monitoring + $STD omd cp monitoring monitoringbackup wget -q https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.bookworm_amd64.deb -O /opt/checkmk.deb - apt-get install -y /opt/checkmk.deb &>/dev/null - omd --force -V ${RELEASE}.cre update --conflict=install monitoring &>/dev/null - omd start monitoring &>/dev/null - omd -f rm monitoringbackup &>/dev/null - omd cleanup &>/dev/null + $STD apt-get install -y /opt/checkmk.deb + $STD omd --force -V ${RELEASE}.cre update --conflict=install monitoring + $STD omd start monitoring + $STD omd -f rm monitoringbackup + $STD omd cleanup rm -rf /opt/checkmk.deb msg_ok "Updated ${APP} to v${RELEASE}" else diff --git a/ct/cloudflared.sh b/ct/cloudflared.sh index aa88988a..ceaa963f 100644 --- a/ct/cloudflared.sh +++ b/ct/cloudflared.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/cockpit.sh b/ct/cockpit.sh index 6b54d884..e6df8eb1 100644 --- a/ct/cockpit.sh +++ b/ct/cockpit.sh @@ -36,48 +36,48 @@ function update_script() { if [ "$UPD" == "1" ]; then msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" exit fi if [ "$UPD" == "2" ]; then msg_info "Installing dependencies (patience)" - apt-get install -y attr &>/dev/null - apt-get install -y nfs-kernel-server &>/dev/null - apt-get install -y samba &>/dev/null - apt-get install -y samba-common-bin &>/dev/null - apt-get install -y winbind &>/dev/null - apt-get install -y gawk &>/dev/null + $STD apt-get install -y attr + $STD apt-get install -y nfs-kernel-server + $STD apt-get install -y samba + $STD apt-get install -y samba-common-bin + $STD apt-get install -y winbind + $STD apt-get install -y gawk msg_ok "Installed dependencies" msg_info "Installing Cockpit file sharing" wget -q $(curl -s https://api.github.com/repos/45Drives/cockpit-file-sharing/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4) - dpkg -i cockpit-file-sharing_*focal_all.deb &>/dev/null + $STD dpkg -i cockpit-file-sharing_*focal_all.deb rm cockpit-file-sharing_*focal_all.deb msg_ok "Installed Cockpit file sharing" exit fi if [ "$UPD" == "3" ]; then msg_info "Installing dependencies (patience)" - apt-get install -y psmisc &>/dev/null - apt-get install -y samba &>/dev/null - apt-get install -y samba-common-bin &>/dev/null + $STD apt-get install -y psmisc + $STD apt-get install -y samba + $STD apt-get install -y samba-common-bin msg_ok "Installed dependencies" msg_info "Installing Cockpit identities" wget -q $(curl -s https://api.github.com/repos/45Drives/cockpit-identities/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4) - dpkg -i cockpit-identities_*focal_all.deb &>/dev/null + $STD dpkg -i cockpit-identities_*focal_all.deb rm cockpit-identities_*focal_all.deb msg_ok "Installed Cockpit identities" exit fi if [ "$UPD" == "4" ]; then msg_info "Installing dependencies" - apt-get install -y rsync &>/dev/null - apt-get install -y zip &>/dev/null + $STD apt-get install -y rsync + $STD apt-get install -y zip msg_ok "Installed dependencies" msg_info "Installing Cockpit navigator" wget -q $(curl -s https://api.github.com/repos/45Drives/cockpit-navigator/releases/latest | grep download | grep focal_all.deb | cut -d\" -f4) - dpkg -i cockpit-navigator_*focal_all.deb &>/dev/null + $STD dpkg -i cockpit-navigator_*focal_all.deb rm cockpit-navigator_*focal_all.deb msg_ok "Installed Cockpit navigator" exit diff --git a/ct/cronicle.sh b/ct/cronicle.sh index dcbc3439..8ce0e678 100644 --- a/ct/cronicle.sh +++ b/ct/cronicle.sh @@ -36,12 +36,12 @@ function update_script() { if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if ! command -v npm >/dev/null 2>&1; then echo "Installing NPM..." - apt-get install -y npm >/dev/null 2>&1 + $STD apt-get install -y npm echo "Installed NPM..." fi fi msg_info "Updating ${APP}" - /opt/cronicle/bin/control.sh upgrade &>/dev/null + $STD /opt/cronicle/bin/control.sh upgrade msg_ok "Updated ${APP}" exit fi @@ -49,7 +49,7 @@ function update_script() { if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if ! command -v npm >/dev/null 2>&1; then echo "Installing NPM..." - apt-get install -y npm >/dev/null 2>&1 + $STD apt-get install -y npm echo "Installed NPM..." fi fi @@ -57,12 +57,12 @@ function update_script() { IP=$(hostname -I | awk '{print $1}') msg_info "Installing Dependencies" - apt-get install -y git &>/dev/null - apt-get install -y make &>/dev/null - apt-get install -y g++ &>/dev/null - apt-get install -y gcc &>/dev/null - apt-get install -y ca-certificates &>/dev/null - apt-get install -y gnupg &>/dev/null + $STD apt-get install -y git + $STD apt-get install -y make + $STD apt-get install -y g++ + $STD apt-get install -y gcc + $STD apt-get install -y ca-certificates + $STD apt-get install -y gnupg msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" @@ -72,21 +72,21 @@ function update_script() { msg_ok "Set up Node.js Repository" msg_info "Installing Node.js" - apt-get update &>/dev/null - apt-get install -y nodejs &>/dev/null + $STD apt-get update + $STD apt-get install -y nodejs msg_ok "Installed Node.js" msg_info "Installing Cronicle Worker" mkdir -p /opt/cronicle cd /opt/cronicle - tar zxvf <(curl -fsSL https://github.com/jhuckaby/Cronicle/archive/${LATEST}.tar.gz) --strip-components 1 &>/dev/null - npm install &>/dev/null - node bin/build.js dist &>/dev/null + $STD tar zxvf <(curl -fsSL https://github.com/jhuckaby/Cronicle/archive/${LATEST}.tar.gz) --strip-components 1 + $STD npm install + $STD node bin/build.js dist sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json - /opt/cronicle/bin/control.sh start &>/dev/null - cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled &>/dev/null + $STD /opt/cronicle/bin/control.sh start + $STD cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled chmod 775 /etc/init.d/cronicled - update-rc.d cronicled defaults &>/dev/null + $STD update-rc.d cronicled defaults msg_ok "Installed Cronicle Worker" echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n" exit diff --git a/ct/cross-seed.sh b/ct/cross-seed.sh index 1cb34a39..0a2337ac 100644 --- a/ct/cross-seed.sh +++ b/ct/cross-seed.sh @@ -29,7 +29,7 @@ function update_script() { latest_version=$(npm show cross-seed version) if [ "$current_version" != "$latest_version" ]; then msg_info "Updating ${APP} from version v${current_version} to v${latest_version}" - npm install -g cross-seed@latest &> /dev/null + $STD npm install -g cross-seed@latest systemctl restart cross-seed msg_ok "Updated Successfully" else diff --git a/ct/daemonsync.sh b/ct/daemonsync.sh index 38f2502f..93c9bf63 100644 --- a/ct/daemonsync.sh +++ b/ct/daemonsync.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/debian.sh b/ct/debian.sh index 125c9df1..3ccd702f 100644 --- a/ct/debian.sh +++ b/ct/debian.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/deconz.sh b/ct/deconz.sh index 70bbea02..6207822f 100644 --- a/ct/deconz.sh +++ b/ct/deconz.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/deluge.sh b/ct/deluge.sh index ba8177f3..e226ecd2 100644 --- a/ct/deluge.sh +++ b/ct/deluge.sh @@ -28,7 +28,7 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null + $STD apt-get update pip3 install deluge[all] --upgrade msg_ok "Updated $APP LXC" exit diff --git a/ct/docker.sh b/ct/docker.sh index fa08d2b6..cf79db90 100644 --- a/ct/docker.sh +++ b/ct/docker.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" exit } diff --git a/ct/docmost.sh b/ct/docmost.sh index 75e1f936..4c3896a7 100644 --- a/ct/docmost.sh +++ b/ct/docmost.sh @@ -41,8 +41,8 @@ function update_script() { mv docmost-${RELEASE} /opt/docmost cd /opt/docmost mv /opt/.env /opt/docmost/.env - pnpm install --force &>/dev/null - pnpm build &>/dev/null + $STD pnpm install --force + $STD pnpm build echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" diff --git a/ct/dotnetaspwebapi.sh b/ct/dotnetaspwebapi.sh index 6b035005..508465b8 100644 --- a/ct/dotnetaspwebapi.sh +++ b/ct/dotnetaspwebapi.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/elementsynapse.sh b/ct/elementsynapse.sh index d1b482be..64057fa4 100644 --- a/ct/elementsynapse.sh +++ b/ct/elementsynapse.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/emby.sh b/ct/emby.sh index d830c735..b63e6085 100644 --- a/ct/emby.sh +++ b/ct/emby.sh @@ -33,8 +33,8 @@ function update_script() { msg_ok "Stopped ${APP}" msg_info "Updating ${APP}" - wget https://github.com/MediaBrowser/Emby.Releases/releases/download/${LATEST}/emby-server-deb_${LATEST}_amd64.deb &>/dev/null - dpkg -i emby-server-deb_${LATEST}_amd64.deb &>/dev/null + $STD wget https://github.com/MediaBrowser/Emby.Releases/releases/download/${LATEST}/emby-server-deb_${LATEST}_amd64.deb + $STD dpkg -i emby-server-deb_${LATEST}_amd64.deb rm emby-server-deb_${LATEST}_amd64.deb msg_ok "Updated ${APP}" diff --git a/ct/emqx.sh b/ct/emqx.sh index 6481b3a1..64282ba4 100644 --- a/ct/emqx.sh +++ b/ct/emqx.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/esphome.sh b/ct/esphome.sh index 85db1bb9..aaadfa2c 100644 --- a/ct/esphome.sh +++ b/ct/esphome.sh @@ -33,9 +33,9 @@ function update_script() { msg_info "Updating ESPHome" if [[ -d /srv/esphome ]]; then - source /srv/esphome/bin/activate &>/dev/null + $STD source /srv/esphome/bin/activate fi - pip3 install -U esphome &>/dev/null + $STD pip3 install -U esphome msg_ok "Updated ESPHome" msg_info "Starting ESPHome" diff --git a/ct/evcc.sh b/ct/evcc.sh index bef7c610..f79a6ba5 100644 --- a/ct/evcc.sh +++ b/ct/evcc.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating evcc LXC" - apt update &>/dev/null - apt --only-upgrade install -y evcc &>/dev/null + $STD apt update + $STD apt --only-upgrade install -y evcc msg_ok "Updated Successfully" exit } diff --git a/ct/excalidraw.sh b/ct/excalidraw.sh index d0ff3a27..c1347b41 100644 --- a/ct/excalidraw.sh +++ b/ct/excalidraw.sh @@ -43,7 +43,7 @@ function update_script() { rm -rf /opt/excalidraw mv excalidraw-${RELEASE} /opt/excalidraw cd /opt/excalidraw - yarn &> /dev/null + $STD yarn msg_ok "Updated $APP to v${RELEASE}" msg_info "Starting $APP" diff --git a/ct/fhem.sh b/ct/fhem.sh index 63156dfe..e5680d81 100644 --- a/ct/fhem.sh +++ b/ct/fhem.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/firefly.sh b/ct/firefly.sh index 526fdcd5..1a5dbd55 100644 --- a/ct/firefly.sh +++ b/ct/firefly.sh @@ -42,13 +42,13 @@ check_container_resources wget -q "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' cd /opt/firefly - composer install --no-dev --no-interaction &>/dev/null - php artisan migrate --seed --force &>/dev/null - php artisan firefly:decrypt-all &>/dev/null - php artisan cache:clear &>/dev/null - php artisan view:clear &>/dev/null - php artisan firefly:upgrade-database &>/dev/null - php artisan firefly:laravel-passport-keys &>/dev/null + $STD composer install --no-dev --no-interaction + $STD php artisan migrate --seed --force + $STD php artisan firefly:decrypt-all + $STD php artisan cache:clear + $STD php artisan view:clear + $STD php artisan firefly:upgrade-database + $STD php artisan firefly:laravel-passport-keys chown -R www-data:www-data /opt/firefly chmod -R 775 /opt/firefly/storage diff --git a/ct/ghost.sh b/ct/ghost.sh index 379189fe..5aa32531 100644 --- a/ct/ghost.sh +++ b/ct/ghost.sh @@ -30,7 +30,7 @@ function update_script() { latest_version=$(npm show ghost-cli version) if [ "$current_version" != "$latest_version" ]; then msg_info "Updating ${APP} from version v${current_version} to v${latest_version}" - npm install -g ghost-cli@latest &> /dev/null + $STD npm install -g ghost-cli@latest msg_ok "Updated Successfully" else msg_ok "${APP} is already at v${current_version}" diff --git a/ct/grafana.sh b/ct/grafana.sh index ebada498..7a42a86e 100644 --- a/ct/grafana.sh +++ b/ct/grafana.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/graylog.sh b/ct/graylog.sh index ffed4bf2..5beed375 100644 --- a/ct/graylog.sh +++ b/ct/graylog.sh @@ -34,8 +34,8 @@ function update_script() { msg_ok "Stopped $APP" msg_info "Updating $APP" - apt-get update &> /dev/null - apt-get upgrade -y &> /dev/null + $STD apt-get update + $STD apt-get upgrade -y msg_ok "Updated $APP" msg_info "Starting $APP" diff --git a/ct/grist.sh b/ct/grist.sh index 83035b0f..ab37a164 100644 --- a/ct/grist.sh +++ b/ct/grist.sh @@ -51,15 +51,15 @@ function update_script() { cd grist msg_info "Installing Dependencies" - yarn install >/dev/null 2>&1 + $STD yarn install msg_ok "Installed Dependencies" msg_info "Building" - yarn run build:prod >/dev/null 2>&1 + $STD yarn run build:prod msg_ok "Done building" msg_info "Installing Python" - yarn run install:python >/dev/null 2>&1 + $STD yarn run install:python msg_ok "Installed Python" echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/heimdall-dashboard.sh b/ct/heimdall-dashboard.sh index 279513d2..0d31e2e9 100644 --- a/ct/heimdall-dashboard.sh +++ b/ct/heimdall-dashboard.sh @@ -44,8 +44,8 @@ function update_script() { VER=$(curl -s 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 cd /opt/Heimdall - apt-get install -y composer &>/dev/null - COMPOSER_ALLOW_SUPERUSER=1 composer dump-autoload &>/dev/null + $STD apt-get install -y composer + $STD COMPOSER_ALLOW_SUPERUSER=1 composer dump-autoload echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated Heimdall Dashboard to ${RELEASE}" msg_info "Restoring Data" diff --git a/ct/hoarder.sh b/ct/hoarder.sh index 1302bb94..15d96efa 100644 --- a/ct/hoarder.sh +++ b/ct/hoarder.sh @@ -35,7 +35,7 @@ function update_script() { msg_ok "Stopped Services" msg_info "Updating ${APP} to v${RELEASE}" if [[ $(corepack -v) < "0.31.0" ]]; then - npm install -g corepack@0.31.0 &>/dev/null + $STD npm install -g corepack@0.31.0 fi cd /opt if [[ -f /opt/hoarder/.env ]] && [[ ! -f /etc/hoarder/hoarder.env ]]; then @@ -47,14 +47,14 @@ function update_script() { unzip -q v${RELEASE}.zip mv hoarder-${RELEASE} /opt/hoarder cd /opt/hoarder/apps/web - pnpm install --frozen-lockfile &>/dev/null - pnpm exec next build --experimental-build-mode compile &>/dev/null + $STD pnpm install --frozen-lockfile + $STD pnpm exec next build --experimental-build-mode compile cp -r /opt/hoarder/apps/web/.next/standalone/apps/web/server.js /opt/hoarder/apps/web cd /opt/hoarder/apps/workers - pnpm install --frozen-lockfile &>/dev/null + $STD pnpm install --frozen-lockfile export DATA_DIR=/opt/hoarder_data cd /opt/hoarder/packages/db - pnpm migrate &>/dev/null + $STD pnpm migrate sed -i "s/SERVER_VERSION=${PREV_RELEASE}/SERVER_VERSION=${RELEASE}/" /etc/hoarder/hoarder.env msg_ok "Updated ${APP} to v${RELEASE}" diff --git a/ct/homarr.sh b/ct/homarr.sh index f459717c..b2489188 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -38,7 +38,7 @@ fi if [[ ! -f /opt/run_homarr.sh ]]; then msg_info "Detected outdated and missing service files" msg_error "Warning - The port of homarr changed from 3000 to 7575" - apt-get install -y nginx gettext openssl gpg &>/dev/null + $STD apt-get install -y nginx gettext openssl gpg sed -i '/^NODE_ENV=/d' /opt/homarr/.env && echo "NODE_ENV='production'" >> /opt/homarr/.env sed -i '/^DB_DIALECT=/d' /opt/homarr/.env && echo "DB_DIALECT='sqlite'" >> /opt/homarr/.env cat <<'EOF' >/opt/run_homarr.sh @@ -114,8 +114,8 @@ EOF mv homarr-${RELEASE} /opt/homarr mv /opt/homarr-data-backup/.env /opt/homarr/.env cd /opt/homarr - pnpm install &>/dev/null - pnpm build &>/dev/null + $STD pnpm install + $STD pnpm build cp /opt/homarr/apps/nextjs/next.config.ts . cp /opt/homarr/apps/nextjs/package.json . cp -r /opt/homarr/packages/db/migrations /opt/homarr_db/migrations diff --git a/ct/homeassistant-core.sh b/ct/homeassistant-core.sh index fd7ef36d..85f181a9 100644 --- a/ct/homeassistant-core.sh +++ b/ct/homeassistant-core.sh @@ -59,7 +59,7 @@ function update_script() { msg_info "Updating Home Assistant" source /srv/homeassistant/bin/activate - pip install ${BR}--upgrade homeassistant &>/dev/null + $STD pip install ${BR}--upgrade homeassistant msg_ok "Updated Home Assistant" msg_info "Starting Home Assistant" @@ -72,10 +72,10 @@ function update_script() { fi if [ "$UPD" == "2" ]; then msg_info "Installing Home Assistant Community Store (HACS)" - apt update &>/dev/null - apt install -y unzip &>/dev/null + $STD apt update + $STD apt install -y unzip cd .homeassistant - bash <(curl -fsSL https://get.hacs.xyz) &>/dev/null + $STD bash <(curl -fsSL https://get.hacs.xyz) msg_ok "Installed Home Assistant Community Store (HACS)" echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integration.\n" exit @@ -85,17 +85,17 @@ function update_script() { read -r -p "Would you like to use No Authentication? " prompt msg_info "Installing FileBrowser" RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g') - curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/$RELEASE/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin &>/dev/null + $STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/$RELEASE/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then - filebrowser config init -a '0.0.0.0' &>/dev/null - filebrowser config set -a '0.0.0.0' &>/dev/null - filebrowser config set --auth.method=noauth &>/dev/null - filebrowser users add ID 1 --perm.admin &>/dev/null + $STD filebrowser config init -a '0.0.0.0' + $STD filebrowser config set -a '0.0.0.0' + $STD filebrowser config set --auth.method=noauth + $STD filebrowser users add ID 1 --perm.admin else - filebrowser config init -a '0.0.0.0' &>/dev/null - filebrowser config set -a '0.0.0.0' &>/dev/null - filebrowser users add admin helper-scripts.com --perm.admin &>/dev/null + $STD filebrowser config init -a '0.0.0.0' + $STD filebrowser config set -a '0.0.0.0' + $STD filebrowser users add admin helper-scripts.com --perm.admin fi msg_ok "Installed FileBrowser" diff --git a/ct/homeassistant.sh b/ct/homeassistant.sh index 71aff0b1..6cd1946a 100644 --- a/ct/homeassistant.sh +++ b/ct/homeassistant.sh @@ -61,10 +61,10 @@ function update_script() { fi if [ "$UPD" == "3" ]; then msg_info "Installing Home Assistant Community Store (HACS)" - apt update &>/dev/null - apt install unzip &>/dev/null + $STD apt update + $STD apt install unzip cd /var/lib/docker/volumes/hass_config/_data - bash <(curl -fsSL https://get.hacs.xyz) &>/dev/null + $STD bash <(curl -fsSL https://get.hacs.xyz) msg_ok "Installed Home Assistant Community Store (HACS)" echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integration.\n" exit @@ -73,10 +73,10 @@ function update_script() { IP=$(hostname -I | awk '{print $1}') msg_info "Installing FileBrowser" RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g') - curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin &>/dev/null - filebrowser config init -a '0.0.0.0' &>/dev/null - filebrowser config set -a '0.0.0.0' &>/dev/null - filebrowser users add admin helper-scripts.com --perm.admin &>/dev/null + $STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin + $STD filebrowser config init -a '0.0.0.0' + $STD filebrowser config set -a '0.0.0.0' + $STD filebrowser users add admin helper-scripts.com --perm.admin msg_ok "Installed FileBrowser" msg_info "Creating Service" @@ -91,7 +91,7 @@ ExecStart=/usr/local/bin/filebrowser -r / [Install] WantedBy=default.target" >$service_path - systemctl enable --now filebrowser.service &>/dev/null + $STD systemctl enable --now filebrowser.service msg_ok "Created Service" msg_ok "Completed Successfully!\n" diff --git a/ct/homebridge.sh b/ct/homebridge.sh index 97dddac1..7a24f0a8 100644 --- a/ct/homebridge.sh +++ b/ct/homebridge.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get install -y homebridge &>/dev/null + $STD apt-get update + $STD apt-get install -y homebridge msg_ok "Updated Successfully" exit } diff --git a/ct/homepage.sh b/ct/homepage.sh index 9e050c03..eb866dca 100644 --- a/ct/homepage.sh +++ b/ct/homepage.sh @@ -30,8 +30,8 @@ function update_script() { if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if ! command -v npm >/dev/null 2>&1; then echo "Installing NPM..." - apt-get install -y npm >/dev/null 2>&1 - npm install -g pnpm >/dev/null 2>&1 + $STD apt-get install -y npm + $STD npm install -g pnpm echo "Installed NPM..." fi fi @@ -45,11 +45,11 @@ function update_script() { cp -r homepage-${RELEASE}/* /opt/homepage/ rm -rf homepage-${RELEASE} cd /opt/homepage - npx --yes update-browserslist-db@latest >/dev/null 2>&1 - pnpm install >/dev/null 2>&1 + $STD npx --yes update-browserslist-db@latest + $STD pnpm install export NEXT_PUBLIC_VERSION="v$RELEASE" export NEXT_PUBLIC_REVISION="source" - pnpm build >/dev/null 2>&1 + $STD pnpm build systemctl start homepage echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated Homepage to v${RELEASE}" diff --git a/ct/homer.sh b/ct/homer.sh index 15488940..eee1bc12 100644 --- a/ct/homer.sh +++ b/ct/homer.sh @@ -41,7 +41,7 @@ function update_script() { rm -rf /opt/homer/* cd /opt/homer wget -q https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip - unzip homer.zip &>/dev/null + $STD unzip homer.zip msg_ok "Updated ${APP}" msg_info "Restoring assets directory" diff --git a/ct/hyperhdr.sh b/ct/hyperhdr.sh index 720829e5..f9c74d2a 100644 --- a/ct/hyperhdr.sh +++ b/ct/hyperhdr.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/hyperion.sh b/ct/hyperion.sh index d04dced8..3d4671da 100644 --- a/ct/hyperion.sh +++ b/ct/hyperion.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get install -y hyperion &>/dev/null + $STD apt-get update + $STD apt-get install -y hyperion msg_ok "Updated Successfully" exit } diff --git a/ct/influxdb.sh b/ct/influxdb.sh index e4a29520..f4bfbbec 100644 --- a/ct/influxdb.sh +++ b/ct/influxdb.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/inspircd.sh b/ct/inspircd.sh index bec679b0..1b55493d 100644 --- a/ct/inspircd.sh +++ b/ct/inspircd.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt wget -q https://github.com/inspircd/inspircd/releases/download/v${RELEASE}/inspircd_${RELEASE}.deb12u1_amd64.deb - apt-get install "./inspircd_${RELEASE}.deb12u1_amd64.deb" -y &>/dev/nul + $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/iobroker.sh b/ct/iobroker.sh index 570b6435..9a859189 100644 --- a/ct/iobroker.sh +++ b/ct/iobroker.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/jellyfin.sh b/ct/jellyfin.sh index ac67f717..4e22f6e8 100644 --- a/ct/jellyfin.sh +++ b/ct/jellyfin.sh @@ -28,9 +28,9 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null - apt-get -y --with-new-pkgs upgrade jellyfin jellyfin-server &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade + $STD apt-get -y --with-new-pkgs upgrade jellyfin jellyfin-server msg_ok "Updated ${APP} LXC" exit } diff --git a/ct/jellyseerr.sh b/ct/jellyseerr.sh index f68d0e31..3d44e6fb 100644 --- a/ct/jellyseerr.sh +++ b/ct/jellyseerr.sh @@ -35,8 +35,8 @@ function update_script() { msg_ok "Updating Node.js Repository" msg_info "Updating Packages" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updating Packages" msg_info "Cleaning up" @@ -53,10 +53,10 @@ function update_script() { if [ -z "$pnpm_current" ]; then msg_error "pnpm not found. Installing version $pnpm_desired..." - npm install -g pnpm@"$pnpm_desired" &>/dev/null + $STD npm install -g pnpm@"$pnpm_desired" elif ! node -e "const semver = require('semver'); process.exit(semver.satisfies('$pnpm_current', '$pnpm_desired') ? 0 : 1)" ; then msg_error "Updating pnpm from version $pnpm_current to $pnpm_desired..." - npm install -g pnpm@"$pnpm_desired" &>/dev/null + $STD npm install -g pnpm@"$pnpm_desired" else msg_ok "pnpm is already installed and satisfies version $pnpm_desired." fi @@ -70,9 +70,9 @@ function update_script() { systemctl stop jellyseerr rm -rf dist .next node_modules export CYPRESS_INSTALL_BINARY=0 - pnpm install --frozen-lockfile &>/dev/null + $STD pnpm install --frozen-lockfile export NODE_OPTIONS="--max-old-space-size=3072" - pnpm build &>/dev/null + $STD pnpm build cat </etc/systemd/system/jellyseerr.service [Unit] diff --git a/ct/jenkins.sh b/ct/jenkins.sh index 4d479a87..6341716a 100644 --- a/ct/jenkins.sh +++ b/ct/jenkins.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/jupyternotebook.sh b/ct/jupyternotebook.sh index bbeb4ae0..a40f3ac2 100644 --- a/ct/jupyternotebook.sh +++ b/ct/jupyternotebook.sh @@ -25,9 +25,9 @@ function update_script() { check_container_resources msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get install -y upgrade &>/dev/null - pip3 install jupyter --upgrade &>/dev/null + $STD apt-get update + $STD apt-get install -y upgrade + $STD pip3 install jupyter --upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/kavita.sh b/ct/kavita.sh index 7a704f86..2ffd78c8 100644 --- a/ct/kavita.sh +++ b/ct/kavita.sh @@ -30,7 +30,7 @@ function update_script() { msg_info "Updating $APP LXC" systemctl stop kavita RELEASE=$(curl -s https://api.github.com/repos/Kareadita/Kavita/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - tar -xvzf <(curl -fsSL https://github.com/Kareadita/Kavita/releases/download/$RELEASE/kavita-linux-x64.tar.gz) --no-same-owner &>/dev/null + $STD tar -xvzf <(curl -fsSL https://github.com/Kareadita/Kavita/releases/download/$RELEASE/kavita-linux-x64.tar.gz) --no-same-owner rm -rf Kavita/config cp -r Kavita/* /opt/Kavita rm -rf Kavita diff --git a/ct/keycloak.sh b/ct/keycloak.sh index 96e14c1c..437bf5c4 100644 --- a/ct/keycloak.sh +++ b/ct/keycloak.sh @@ -30,8 +30,8 @@ function update_script() { msg_info "Updating ${APP} LXC" msg_info "Updating packages" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade RELEASE=$(curl -s 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" diff --git a/ct/kimai.sh b/ct/kimai.sh index 3a00ca4b..8b03eafb 100644 --- a/ct/kimai.sh +++ b/ct/kimai.sh @@ -41,8 +41,8 @@ function update_script() { mv kimai-${RELEASE} /opt/kimai mv /opt/.env /opt/kimai/.env cd /opt/kimai - composer install --no-dev --optimize-autoloader &>/dev/null - bin/console kimai:update &>/dev/null + $STD composer install --no-dev --optimize-autoloader + $STD bin/console kimai:update chown -R :www-data . chmod -R g+r . chmod -R g+rw var/ diff --git a/ct/koillection.sh b/ct/koillection.sh index 64dfde90..31af0454 100644 --- a/ct/koillection.sh +++ b/ct/koillection.sh @@ -43,12 +43,12 @@ function update_script() { cp -r /opt/koillection-backup/.env.local /opt/koillection cp -r /opt/koillection-backup/public/uploads/. /opt/koillection/public/uploads/ export COMPOSER_ALLOW_SUPERUSER=1 - composer install --no-dev -o --no-interaction --classmap-authoritative &>/dev/null - php bin/console doctrine:migrations:migrate --no-interaction &>/dev/null - php bin/console app:translations:dump &>/dev/null + $STD composer install --no-dev -o --no-interaction --classmap-authoritative + $STD php bin/console doctrine:migrations:migrate --no-interaction + $STD php bin/console app:translations:dump cd assets/ - yarn install &>/dev/null - yarn build &>/dev/null + $STD yarn install + $STD yarn build chown -R www-data:www-data /opt/koillection/public/uploads echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" diff --git a/ct/kometa.sh b/ct/kometa.sh index 76d4adba..757ad69d 100644 --- a/ct/kometa.sh +++ b/ct/kometa.sh @@ -46,7 +46,7 @@ function update_script() { mv Kometa-${RELEASE} /opt/kometa cd /opt/kometa rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED - pip install -r requirements.txt --ignore-installed &> /dev/null + $STD pip install -r requirements.txt --ignore-installed mkdir -p config/assets cp /opt/config.yml config/config.yml echo "${RELEASE}" >/opt/kometa_version.txt diff --git a/ct/komodo.sh b/ct/komodo.sh index e1a96705..56a14013 100644 --- a/ct/komodo.sh +++ b/ct/komodo.sh @@ -54,7 +54,7 @@ function update_script() { exit 1 } - docker compose -p komodo -f "/opt/komodo/$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d &>/dev/null + $STD docker compose -p komodo -f "/opt/komodo/$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d msg_ok "Updated ${APP}" } diff --git a/ct/kubo.sh b/ct/kubo.sh index 90bffaa7..84875d69 100644 --- a/ct/kubo.sh +++ b/ct/kubo.sh @@ -30,8 +30,8 @@ function update_script() { RELEASE=$(wget -q https://github.com/ipfs/kubo/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade wget -q "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 diff --git a/ct/lazylibrarian.sh b/ct/lazylibrarian.sh index 5f020a48..0a347502 100644 --- a/ct/lazylibrarian.sh +++ b/ct/lazylibrarian.sh @@ -32,7 +32,7 @@ function update_script() { msg_ok "LazyLibrarian Stopped" msg_info "Updating $APP LXC" - git -C /opt/LazyLibrarian pull origin master &>/dev/null + $STD git -C /opt/LazyLibrarian pull origin master msg_ok "Updated $APP LXC" msg_info "Starting LazyLibrarian" diff --git a/ct/lidarr.sh b/ct/lidarr.sh index a1c7592c..0ce059c2 100644 --- a/ct/lidarr.sh +++ b/ct/lidarr.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/linkwarden.sh b/ct/linkwarden.sh index 732033d1..a224cd63 100644 --- a/ct/linkwarden.sh +++ b/ct/linkwarden.sh @@ -41,12 +41,12 @@ function update_script() { unzip -q ${RELEASE}.zip mv linkwarden-${RELEASE:1} /opt/linkwarden cd /opt/linkwarden - yarn &>/dev/null - npx playwright install-deps &>/dev/null - yarn playwright install &>/dev/null + $STD yarn + $STD npx playwright install-deps + $STD yarn playwright install cp /opt/.env /opt/linkwarden/.env - yarn build &>/dev/null - yarn prisma migrate deploy &>/dev/null + $STD yarn build + $STD yarn prisma migrate deploy echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to ${RELEASE}" diff --git a/ct/listmonk.sh b/ct/listmonk.sh index e7b5d26c..60b2acd8 100644 --- a/ct/listmonk.sh +++ b/ct/listmonk.sh @@ -42,7 +42,7 @@ function update_script() { 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 - /opt/listmonk/listmonk --upgrade --yes --config /opt/listmonk/config.toml &>/dev/null + $STD /opt/listmonk/listmonk --upgrade --yes --config /opt/listmonk/config.toml echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" diff --git a/ct/magicmirror.sh b/ct/magicmirror.sh index 02eca74e..88ca03b1 100644 --- a/ct/magicmirror.sh +++ b/ct/magicmirror.sh @@ -50,7 +50,7 @@ function update_script() { rm -rf /opt/magicmirror mv MagicMirror-${RELEASE} /opt/magicmirror cd /opt/magicmirror - npm run install-mm &> /dev/null + $STD npm run install-mm cp /opt/magicmirror-backup/config.js /opt/magicmirror/config/ if [[ -f /opt/magicmirror-backup/custom.css ]]; then cp /opt/magicmirror-backup/custom.css /opt/magicmirror/css/ diff --git a/ct/mariadb.sh b/ct/mariadb.sh index fecac471..4ffd6657 100644 --- a/ct/mariadb.sh +++ b/ct/mariadb.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/mattermost.sh b/ct/mattermost.sh index 48596287..910d00bd 100644 --- a/ct/mattermost.sh +++ b/ct/mattermost.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/memos.sh b/ct/memos.sh index 0f9b0566..b19d7269 100644 --- a/ct/memos.sh +++ b/ct/memos.sh @@ -37,13 +37,13 @@ function update_script() { fi systemctl stop memos cd /opt/memos/web - pnpm i --frozen-lockfile &>/dev/null - pnpm build &>/dev/null + $STD pnpm i --frozen-lockfile + $STD pnpm build cd /opt/memos mkdir -p /opt/memos/server/dist cp -r web/dist/* /opt/memos/server/dist/ cp -r web/dist/* /opt/memos/server/router/frontend/dist/ - go build -o /opt/memos/memos -tags=embed bin/memos/main.go &>/dev/null + $STD go build -o /opt/memos/memos -tags=embed bin/memos/main.go systemctl start memos msg_ok "Updated $APP" exit diff --git a/ct/meshcentral.sh b/ct/meshcentral.sh index 6f8c2543..621182dc 100644 --- a/ct/meshcentral.sh +++ b/ct/meshcentral.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/metube.sh b/ct/metube.sh index deaf6579..42107309 100644 --- a/ct/metube.sh +++ b/ct/metube.sh @@ -37,14 +37,14 @@ function update_script() { rm -rf metube_bak fi mv metube metube_bak - git clone https://github.com/alexta69/metube /opt/metube >/dev/null 2>&1 + $STD git clone https://github.com/alexta69/metube /opt/metube cd /opt/metube/ui - npm install >/dev/null 2>&1 - node_modules/.bin/ng build >/dev/null 2>&1 + $STD npm install + $STD node_modules/.bin/ng build cd /opt/metube cp /opt/metube_bak/.env /opt/metube/ - pip3 install pipenv >/dev/null 2>&1 - pipenv install >/dev/null 2>&1 + $STD pip3 install pipenv + $STD pipenv install if [ -d "/opt/metube_bak" ]; then rm -rf /opt/metube_bak diff --git a/ct/mongodb.sh b/ct/mongodb.sh index 392da311..96f2f536 100644 --- a/ct/mongodb.sh +++ b/ct/mongodb.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/monica.sh b/ct/monica.sh index 3a43f7e1..7c84f219 100644 --- a/ct/monica.sh +++ b/ct/monica.sh @@ -42,10 +42,10 @@ function update_script() { cd /opt/monica/ cp -r /opt/monica-backup/.env /opt/monica cp -r /opt/monica-backup/storage/* /opt/monica/storage/ - composer install --no-interaction --no-dev &>/dev/null - yarn install &>/dev/null - yarn run production &>/dev/null - php artisan monica:update --force &>/dev/null + $STD composer install --no-interaction --no-dev + $STD yarn install + $STD yarn run production + $STD php artisan monica:update --force chown -R www-data:www-data /opt/monica chmod -R 775 /opt/monica/storage echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/ct/motioneye.sh b/ct/motioneye.sh index 89904cfc..2cf0490d 100644 --- a/ct/motioneye.sh +++ b/ct/motioneye.sh @@ -28,7 +28,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - pip install motioneye --upgrade &>/dev/null + $STD pip install motioneye --upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/mqtt.sh b/ct/mqtt.sh index 8de9cba5..4594fa8d 100644 --- a/ct/mqtt.sh +++ b/ct/mqtt.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/myspeed.sh b/ct/myspeed.sh index 79443692..1d6cd221 100644 --- a/ct/myspeed.sh +++ b/ct/myspeed.sh @@ -41,7 +41,7 @@ function update_script() { wget -q https://github.com/gnmyt/myspeed/releases/download/v$RELEASE/MySpeed-$RELEASE.zip unzip -q MySpeed-$RELEASE.zip -d myspeed cd myspeed - npm install >/dev/null 2>&1 + $STD npm install echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to ${RELEASE}" diff --git a/ct/mysql.sh b/ct/mysql.sh index 387c7db8..c35ac114 100644 --- a/ct/mysql.sh +++ b/ct/mysql.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/n8n.sh b/ct/n8n.sh index 38b804d2..06bc9342 100644 --- a/ct/n8n.sh +++ b/ct/n8n.sh @@ -30,12 +30,12 @@ function update_script() { if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if ! command -v npm >/dev/null 2>&1; then echo "Installing NPM..." - apt-get install -y npm >/dev/null 2>&1 + $STD apt-get install -y npm echo "Installed NPM..." fi fi msg_info "Updating ${APP} LXC" - npm update -g n8n &>/dev/null + $STD npm update -g n8n systemctl restart n8n msg_ok "Updated Successfully" exit diff --git a/ct/navidrome.sh b/ct/navidrome.sh index 32e280d0..a271f556 100644 --- a/ct/navidrome.sh +++ b/ct/navidrome.sh @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating to v${RELEASE}" cd /opt wget -q https://github.com/navidrome/navidrome/releases/download/v${RELEASE}/navidrome_${RELEASE}_linux_amd64.tar.gz -O Navidrome.tar.gz - tar -xvzf Navidrome.tar.gz -C /opt/navidrome/ &>/dev/null + $STD tar -xvzf Navidrome.tar.gz -C /opt/navidrome/ chmod +x /opt/navidrome/navidrome msg_ok "Updated ${APP}" rm -rf /opt/Navidrome.tar.gz diff --git a/ct/neo4j.sh b/ct/neo4j.sh index ed981d2d..3049d9e7 100644 --- a/ct/neo4j.sh +++ b/ct/neo4j.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/netbox.sh b/ct/netbox.sh index 219a0021..6db15b37 100644 --- a/ct/netbox.sh +++ b/ct/netbox.sh @@ -56,7 +56,7 @@ function update_script() { cp -r /opt/netbox-backup/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/ fi - /opt/netbox/upgrade.sh &>/dev/null + $STD /opt/netbox/upgrade.sh echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" diff --git a/ct/nextcloudpi.sh b/ct/nextcloudpi.sh index dae1463e..687cf46d 100644 --- a/ct/nextcloudpi.sh +++ b/ct/nextcloudpi.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/nextpvr.sh b/ct/nextpvr.sh index c18cdb4e..76065b97 100644 --- a/ct/nextpvr.sh +++ b/ct/nextpvr.sh @@ -33,14 +33,14 @@ function update_script() { msg_ok "Stopped ${APP}" msg_info "Updating LXC packages" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated LXC packages" msg_info "Updating ${APP}" cd /opt wget -q https://nextpvr.com/nextpvr-helper.deb - dpkg -i nextpvr-helper.deb &>/dev/null + $STD dpkg -i nextpvr-helper.deb msg_ok "Updated ${APP}" msg_info "Starting ${APP}" diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index c44065b9..08d35994 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -30,7 +30,7 @@ function update_script() { if ! command -v pnpm &> /dev/null; then msg_info "Installing pnpm" #export NODE_OPTIONS=--openssl-legacy-provider - npm install -g pnpm@8.15 &>/dev/null + $STD npm install -g pnpm@8.15 msg_ok "Installed pnpm" fi RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest | @@ -47,11 +47,11 @@ function update_script() { /etc/nginx \ /var/log/nginx \ /var/lib/nginx \ - /var/cache/nginx &>/dev/null + $STD /var/cache/nginx msg_ok "Cleaned Old Files" msg_info "Downloading NPM v${RELEASE}" - wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} -O - | tar -xz &>/dev/null + $STD wget -q https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} -O - | tar -xz cd nginx-proxy-manager-${RELEASE} msg_ok "Downloaded NPM v${RELEASE}" @@ -96,25 +96,25 @@ function update_script() { chown root /tmp/nginx echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf);" >/etc/nginx/conf.d/include/resolvers.conf if [ ! -f /data/nginx/dummycert.pem ] || [ ! -f /data/nginx/dummykey.pem ]; then - openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -subj "/O=Nginx Proxy Manager/OU=Dummy Certificate/CN=localhost" -keyout /data/nginx/dummykey.pem -out /data/nginx/dummycert.pem &>/dev/null + $STD openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -subj "/O=Nginx Proxy Manager/OU=Dummy Certificate/CN=localhost" -keyout /data/nginx/dummykey.pem -out /data/nginx/dummycert.pem fi mkdir -p /app/global /app/frontend/images cp -r backend/* /app cp -r global/* /app/global - python3 -m pip install --no-cache-dir certbot-dns-cloudflare &>/dev/null + $STD python3 -m pip install --no-cache-dir certbot-dns-cloudflare msg_ok "Setup Enviroment" msg_info "Building Frontend" cd ./frontend - pnpm install &>/dev/null - pnpm upgrade &>/dev/null - pnpm run build &>/dev/null + $STD pnpm install + $STD pnpm upgrade + $STD pnpm run build cp -r dist/* /app/frontend cp -r app-images/* /app/frontend/images msg_ok "Built Frontend" msg_info "Initializing Backend" - rm -rf /app/config/default.json &>/dev/null + $STD rm -rf /app/config/default.json if [ ! -f /app/config/production.json ]; then cat <<'EOF' >/app/config/production.json { @@ -131,7 +131,7 @@ function update_script() { EOF fi cd /app - pnpm install &>/dev/null + $STD pnpm install msg_ok "Initialized Backend" msg_info "Starting Services" diff --git a/ct/node-red.sh b/ct/node-red.sh index 7b8713fb..8321d7d6 100644 --- a/ct/node-red.sh +++ b/ct/node-red.sh @@ -35,7 +35,7 @@ function update_script() { if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if ! command -v npm >/dev/null 2>&1; then msg_info "Installing NPM" - apt-get install -y npm >/dev/null 2>&1 + $STD apt-get install -y npm msg_ok "Installed NPM" fi fi @@ -44,7 +44,7 @@ function update_script() { msg_ok "Stopped ${APP}" msg_info "Updating ${APP}" - npm install -g --unsafe-perm node-red &>/dev/null + $STD npm install -g --unsafe-perm node-red msg_ok "Updated ${APP}" msg_info "Starting ${APP}" @@ -84,7 +84,7 @@ function update_script() { msg_info "Installing ${THEME} Theme" cd /root/.node-red sed -i 's|// theme: ".*",|theme: "",|g' /root/.node-red/settings.js - npm install @node-red-contrib-themes/theme-collection &>/dev/null + $STD npm install @node-red-contrib-themes/theme-collection sed -i "{s/theme: ".*"/theme: '${THEME}',/g}" /root/.node-red/settings.js systemctl restart nodered msg_ok "Installed ${THEME} Theme" diff --git a/ct/nodebb.sh b/ct/nodebb.sh index 7317abe7..4b79273a 100644 --- a/ct/nodebb.sh +++ b/ct/nodebb.sh @@ -39,7 +39,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt/nodebb - ./nodebb upgrade >/dev/null 2>&1 + $STD ./nodebb upgrade echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to v${RELEASE}" diff --git a/ct/notifiarr.sh b/ct/notifiarr.sh index e732b81c..0dd171de 100644 --- a/ct/notifiarr.sh +++ b/ct/notifiarr.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP" exit } diff --git a/ct/ntfy.sh b/ct/ntfy.sh index 78ef16ab..81bfcec4 100644 --- a/ct/ntfy.sh +++ b/ct/ntfy.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/nxwitness.sh b/ct/nxwitness.sh index 35fb307a..ebcbe69c 100644 --- a/ct/nxwitness.sh +++ b/ct/nxwitness.sh @@ -41,7 +41,7 @@ function update_script() { wget -q "$DOWNLOAD_URL" -O "nxwitness-server-$RELEASE-linux_x64.deb" export DEBIAN_FRONTEND=noninteractive export DEBCONF_NOWARNINGS=yes - dpkg -i nxwitness-server-$RELEASE-linux_x64.deb >/dev/null 2>&1 + $STD dpkg -i nxwitness-server-$RELEASE-linux_x64.deb echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" diff --git a/ct/nzbget.sh b/ct/nzbget.sh index a5f86aee..57279e4e 100644 --- a/ct/nzbget.sh +++ b/ct/nzbget.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/octoprint.sh b/ct/octoprint.sh index 25fd271f..f701fd6b 100644 --- a/ct/octoprint.sh +++ b/ct/octoprint.sh @@ -33,7 +33,7 @@ function update_script() { msg_info "Updating OctoPrint" source /opt/octoprint/bin/activate - pip3 install octoprint --upgrade &>/dev/null + $STD pip3 install octoprint --upgrade msg_ok "Updated OctoPrint" msg_info "Starting OctoPrint" diff --git a/ct/ollama.sh b/ct/ollama.sh index ecae8954..7604c22b 100644 --- a/ct/ollama.sh +++ b/ct/ollama.sh @@ -27,8 +27,8 @@ function update_script() { exit fi msg_info "Updating ${APP}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/omv.sh b/ct/omv.sh index 9b264144..7a34ae6c 100644 --- a/ct/omv.sh +++ b/ct/omv.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/onedev.sh b/ct/onedev.sh index 16db5648..e1f706d0 100644 --- a/ct/onedev.sh +++ b/ct/onedev.sh @@ -37,7 +37,7 @@ function update_script() { cd /opt wget -q https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz tar -xzf onedev-latest.tar.gz - /opt/onedev-latest/bin/upgrade.sh /opt/onedev >/dev/null + $STD /opt/onedev-latest/bin/upgrade.sh /opt/onedev RELEASE=$(cat /opt/onedev/release.properties | grep "version" | cut -d'=' -f2) echo "${RELEASE}" >"/opt/${APP}_version.txt" msg_ok "Updated ${APP} to v${RELEASE}" diff --git a/ct/opengist.sh b/ct/opengist.sh index 81f15e5a..7b946bc1 100644 --- a/ct/opengist.sh +++ b/ct/opengist.sh @@ -34,8 +34,8 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating ${APP} to v${RELEASE}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade cd /opt mv /opt/opengist /opt/opengist-backup wget -q "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz" @@ -52,8 +52,8 @@ function update_script() { msg_info "Cleaning up" rm -rf /opt/opengist${RELEASE}-linux-amd64.tar.gz rm -rf /opt/opengist-backup - apt-get -y autoremove &>/dev/null - apt-get -y autoclean &>/dev/null + $STD apt-get -y autoremove + $STD apt-get -y autoclean msg_ok "Cleaned" msg_ok "Updated Successfully" else diff --git a/ct/openhab.sh b/ct/openhab.sh index 43aab08a..24dc9d54 100644 --- a/ct/openhab.sh +++ b/ct/openhab.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/openwebui.sh b/ct/openwebui.sh index d140710d..17fff9d8 100644 --- a/ct/openwebui.sh +++ b/ct/openwebui.sh @@ -35,11 +35,11 @@ function update_script() { exit fi systemctl stop open-webui.service - npm install &>/dev/null + $STD npm install export NODE_OPTIONS="--max-old-space-size=3584" - npm run build &>/dev/null + $STD npm run build cd ./backend - pip install -r requirements.txt -U &>/dev/null + $STD pip install -r requirements.txt -U systemctl start open-webui.service msg_ok "Updated Successfully" exit diff --git a/ct/overseerr.sh b/ct/overseerr.sh index 2e14369f..a408543f 100644 --- a/ct/overseerr.sh +++ b/ct/overseerr.sh @@ -31,14 +31,14 @@ function update_script() { systemctl stop overseerr cd /opt/overseerr output=$(git pull) - git pull &>/dev/null + $STD git pull if echo "$output" | grep -q "Already up to date."; then msg_ok " $APP is already up to date." systemctl start overseerr exit fi - yarn install &>/dev/null - yarn build &>/dev/null + $STD yarn install + $STD yarn build systemctl start overseerr msg_ok "Updated $APP" exit diff --git a/ct/owncast.sh b/ct/owncast.sh index a69accc0..c4f4660b 100644 --- a/ct/owncast.sh +++ b/ct/owncast.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/paperless-ai.sh b/ct/paperless-ai.sh index c4e02d1d..60cd99fa 100644 --- a/ct/paperless-ai.sh +++ b/ct/paperless-ai.sh @@ -42,7 +42,7 @@ function update_script() { mkdir -p /opt/paperless-ai/data cp -a /opt/paperless-ai_bak/data/. /opt/paperless-ai/data/ cd /opt/paperless-ai - npm install &>/dev/null + $STD npm install echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" diff --git a/ct/paperless-ngx.sh b/ct/paperless-ngx.sh index 2a62c7b5..df89acd2 100644 --- a/ct/paperless-ngx.sh +++ b/ct/paperless-ngx.sh @@ -41,9 +41,9 @@ function update_script() { wget -q 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 - ./configure &>/dev/null - make &>/dev/null - sudo make install &>/dev/null + $STD ./configure + $STD make + $STD sudo make install rm -rf /tmp/ghostscript* msg_ok "Ghostscript updated to 10.04.0" fi @@ -58,9 +58,9 @@ function update_script() { cp -r /opt/paperless/paperless.conf paperless-ngx/ cp -r paperless-ngx/* /opt/paperless/ cd /opt/paperless - pip install -r requirements.txt &>/dev/null + $STD pip install -r requirements.txt cd /opt/paperless/src - /usr/bin/python3 manage.py migrate &>/dev/null + $STD /usr/bin/python3 manage.py migrate echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated to ${RELEASE}" diff --git a/ct/part-db.sh b/ct/part-db.sh index d7f11457..a2df14f2 100644 --- a/ct/part-db.sh +++ b/ct/part-db.sh @@ -46,11 +46,11 @@ function update_script() { cp -r "/opt/partdb-backup/config/banner.md" /opt/partdb/config/ export COMPOSER_ALLOW_SUPERUSER=1 - composer install --no-dev -o --no-interaction &>/dev/null - yarn install &>/dev/null - yarn build &>/dev/null - php bin/console cache:clear &>/dev/null - php bin/console doctrine:migrations:migrate -n &>/dev/null + $STD composer install --no-dev -o --no-interaction + $STD yarn install + $STD yarn build + $STD php bin/console cache:clear + $STD php bin/console doctrine:migrations:migrate -n chown -R www-data:www-data /opt/partdb echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" diff --git a/ct/paymenter.sh b/ct/paymenter.sh index fbdf7846..9bab05f4 100644 --- a/ct/paymenter.sh +++ b/ct/paymenter.sh @@ -33,7 +33,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" echo "${RELEASE}" >/opt/${APP}_version.txt cd /opt/paymenter - php artisan p:upgrade --no-interaction &>/dev/null + $STD php artisan p:upgrade --no-interaction msg_ok "Updated Successfully" else msg_ok "No update required. ${APP} is already at ${RELEASE}." diff --git a/ct/peanut.sh b/ct/peanut.sh index fd59ce1e..fc18a49a 100644 --- a/ct/peanut.sh +++ b/ct/peanut.sh @@ -35,8 +35,8 @@ function update_script() { tar -xzf peanut.tar.gz -C /opt/peanut --strip-components 1 rm peanut.tar.gz cd /opt/peanut - pnpm i &>/dev/null - pnpm run build &>/dev/null + $STD pnpm i + $STD pnpm run build cp -r .next/static .next/standalone/.next/ mkdir -p /opt/peanut/.next/standalone/config ln -sf /etc/peanut/settings.yml /opt/peanut/.next/standalone/config/settings.yml diff --git a/ct/pf2etools.sh b/ct/pf2etools.sh index 364561e0..c4f6de89 100644 --- a/ct/pf2etools.sh +++ b/ct/pf2etools.sh @@ -32,8 +32,8 @@ function update_script() { RELEASE=$(curl -s https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f "/opt/${APP}_version.txt" ]]; then msg_info "Updating System" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated System" msg_info "Updating ${APP}" @@ -43,8 +43,8 @@ function update_script() { rm -rf "/opt/${APP}" mv ${APP}-${RELEASE:1} /opt/${APP} cd /opt/Pf2eTools - npm install &>/dev/null - npm run build &>/dev/null + $STD npm install + $STD npm run build chown -R www-data: "/opt/${APP}" chmod -R 755 "/opt/${APP}" echo "${RELEASE}" >"/opt/${APP}_version.txt" diff --git a/ct/photoprism.sh b/ct/photoprism.sh index 9e946fdc..0187e06d 100644 --- a/ct/photoprism.sh +++ b/ct/photoprism.sh @@ -32,7 +32,7 @@ function update_script() { msg_ok "Stopped PhotoPrism" msg_info "Updating PhotoPrism" - apt-get install -y libvips42 &>/dev/null + $STD apt-get install -y libvips42 wget -q -cO - https://dl.photoprism.app/pkg/linux/amd64.tar.gz | tar -xzf - -C /opt/photoprism --strip-components=1 msg_ok "Updated PhotoPrism" diff --git a/ct/pingvin.sh b/ct/pingvin.sh index 2f34972c..0283015a 100644 --- a/ct/pingvin.sh +++ b/ct/pingvin.sh @@ -42,11 +42,11 @@ function update_script() { cp -rf pingvin-share-${RELEASE}/* /opt/pingvin-share cd /opt/pingvin-share cd backend - npm install &>/dev/null - npm run build &>/dev/null + $STD npm install + $STD npm run build cd ../frontend - npm install &>/dev/null - npm run build &>/dev/null + $STD npm install + $STD npm run build echo "${RELEASE}" >"/opt/pingvin_version.txt" rm -rf /opt/v${RELEASE}.zip rm -rf /opt/pingvin-share-${RELEASE} diff --git a/ct/plex.sh b/ct/plex.sh index e2266085..f742e127 100644 --- a/ct/plex.sh +++ b/ct/plex.sh @@ -33,8 +33,8 @@ function update_script() { 3>&1 1>&2 2>&3) if [ "$UPD" == "1" ]; then msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" exit fi diff --git a/ct/podman-homeassistant.sh b/ct/podman-homeassistant.sh index ceb3856c..0f7b3ea3 100644 --- a/ct/podman-homeassistant.sh +++ b/ct/podman-homeassistant.sh @@ -33,8 +33,8 @@ check_container_resources if [ "$UPD" == "1" ]; then msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" msg_info "Updating All Containers\n" @@ -54,10 +54,10 @@ if [ "$UPD" == "1" ]; then fi if [ "$UPD" == "2" ]; then msg_info "Installing Home Assistant Community Store (HACS)" - apt update &>/dev/null - apt install unzip &>/dev/null + $STD apt update + $STD apt install unzip cd /var/lib/containers/storage/volumes/hass_config/_data - bash <(curl -fsSL https://get.hacs.xyz) &>/dev/null + $STD bash <(curl -fsSL https://get.hacs.xyz) msg_ok "Installed Home Assistant Community Store (HACS)" echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integration.\n" exit @@ -65,10 +65,10 @@ fi if [ "$UPD" == "3" ]; then IP=$(hostname -I | awk '{print $1}') msg_info "Installing FileBrowser" - curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash &>/dev/null - filebrowser config init -a '0.0.0.0' &>/dev/null - filebrowser config set -a '0.0.0.0' &>/dev/null - filebrowser users add admin helper-scripts.com --perm.admin &>/dev/null + $STD curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash + $STD filebrowser config init -a '0.0.0.0' + $STD filebrowser config set -a '0.0.0.0' + $STD filebrowser users add admin helper-scripts.com --perm.admin msg_ok "Installed FileBrowser" msg_info "Creating Service" @@ -83,7 +83,7 @@ if [ "$UPD" == "3" ]; then [Install] WantedBy=default.target" >$service_path - systemctl enable --now filebrowser.service &>/dev/null + $STD systemctl enable --now filebrowser.service msg_ok "Created Service" msg_ok "Completed Successfully!\n" diff --git a/ct/podman.sh b/ct/podman.sh index 284f0ed5..cf885e06 100644 --- a/ct/podman.sh +++ b/ct/podman.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/postgresql.sh b/ct/postgresql.sh index 850a8120..fb79e5f5 100644 --- a/ct/postgresql.sh +++ b/ct/postgresql.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/prometheus-pve-exporter.sh b/ct/prometheus-pve-exporter.sh index 69b10a58..4987f816 100644 --- a/ct/prometheus-pve-exporter.sh +++ b/ct/prometheus-pve-exporter.sh @@ -32,7 +32,7 @@ function update_script() { msg_ok "Stopped ${APP}" msg_info "Updating ${APP}" - pip install prometheus-pve-exporter --default-timeout=300 --upgrade --root-user-action=ignore &>/dev/null + $STD pip install prometheus-pve-exporter --default-timeout=300 --upgrade --root-user-action=ignore msg_ok "Updated ${APP}" msg_info "Starting ${APP}" diff --git a/ct/proxmox-backup-server.sh b/ct/proxmox-backup-server.sh index 671a4582..e51a68d9 100644 --- a/ct/proxmox-backup-server.sh +++ b/ct/proxmox-backup-server.sh @@ -25,8 +25,8 @@ function update_script() { check_container_resources if [[ ! -e /usr/sbin/proxmox-backup-manager ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/proxmox-datacenter-manager.sh b/ct/proxmox-datacenter-manager.sh index afdbbdb6..ea3627ba 100644 --- a/ct/proxmox-datacenter-manager.sh +++ b/ct/proxmox-datacenter-manager.sh @@ -25,8 +25,8 @@ function update_script() { check_container_resources if [[ ! -e /usr/sbin/proxmox-datacenter-manager-admin ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/proxmox-mail-gateway.sh b/ct/proxmox-mail-gateway.sh index 654bbc4b..30b1656a 100644 --- a/ct/proxmox-mail-gateway.sh +++ b/ct/proxmox-mail-gateway.sh @@ -25,8 +25,8 @@ function update_script() { check_container_resources if [[ ! -e /usr/bin/pmgproxy ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated ${APP}" exit } diff --git a/ct/ps5-mqtt.sh b/ct/ps5-mqtt.sh index 3afe5556..8978e4ee 100644 --- a/ct/ps5-mqtt.sh +++ b/ct/ps5-mqtt.sh @@ -47,8 +47,8 @@ function update_script() { msg_info "Building new PS5-MQTT version" cd /opt/ps5-mqtt/ps5-mqtt/ - npm install &>/dev/null - npm run build &>/dev/null + $STD npm install + $STD npm run build msg_ok "Built new PS5-MQTT version" msg_info "Starting service" diff --git a/ct/qbittorrent.sh b/ct/qbittorrent.sh index 39384750..5b4fa0d4 100644 --- a/ct/qbittorrent.sh +++ b/ct/qbittorrent.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" exit } diff --git a/ct/rabbitmq.sh b/ct/rabbitmq.sh index a5a6b896..317fc0e6 100644 --- a/ct/rabbitmq.sh +++ b/ct/rabbitmq.sh @@ -32,7 +32,7 @@ function update_script() { msg_ok "Stopped ${APP} Service" msg_info "Updating..." - apt install --only-upgrade rabbitmq-server &>/dev/null + $STD apt install --only-upgrade rabbitmq-server msg_ok "Update Successfully" msg_info "Starting ${APP}" diff --git a/ct/rdtclient.sh b/ct/rdtclient.sh index 1d5ea16a..1737e5b8 100755 --- a/ct/rdtclient.sh +++ b/ct/rdtclient.sh @@ -33,8 +33,8 @@ function update_script() { msg_info "Updating ${APP}" if dpkg-query -W dotnet-sdk-8.0 >/dev/null 2>&1; then - apt-get remove --purge -y dotnet-sdk-8.0 &>/dev/null - apt-get install -y dotnet-sdk-9.0 &>/dev/null + $STD apt-get remove --purge -y dotnet-sdk-8.0 + $STD apt-get install -y dotnet-sdk-9.0 fi mkdir -p rdtc-backup cp -R /opt/rdtc/appsettings.json rdtc-backup/ diff --git a/ct/readarr.sh b/ct/readarr.sh index 357061eb..0bb63efe 100644 --- a/ct/readarr.sh +++ b/ct/readarr.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/rtsptoweb.sh b/ct/rtsptoweb.sh index 0534068d..98cb65b6 100644 --- a/ct/rtsptoweb.sh +++ b/ct/rtsptoweb.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/rustdeskserver.sh b/ct/rustdeskserver.sh index b9854328..16e30612 100644 --- a/ct/rustdeskserver.sh +++ b/ct/rustdeskserver.sh @@ -40,7 +40,7 @@ function update_script() { wget -q "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbr_${RELEASE}_amd64.deb" -P $TEMPDIR wget -q "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-hbbs_${RELEASE}_amd64.deb" -P $TEMPDIR wget -q "https://github.com/rustdesk/rustdesk-server/releases/download/${RELEASE}/rustdesk-server-utils_${RELEASE}_amd64.deb" -P $TEMPDIR - dpkg -i $TEMPDIR/*.deb &> /dev/null + $STD dpkg -i $TEMPDIR/*.deb msg_ok "Updated $APP to v${RELEASE}" msg_info "Cleaning Up" diff --git a/ct/sabnzbd.sh b/ct/sabnzbd.sh index 27f9ccf5..00a5343f 100644 --- a/ct/sabnzbd.sh +++ b/ct/sabnzbd.sh @@ -31,11 +31,11 @@ function update_script() { if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating $APP to ${RELEASE}" systemctl stop sabnzbd.service - tar zxvf <(curl -fsSL https://github.com/sabnzbd/sabnzbd/releases/download/$RELEASE/SABnzbd-${RELEASE}-src.tar.gz) &>/dev/null - \cp -r SABnzbd-${RELEASE}/* /opt/sabnzbd &>/dev/null + $STD tar zxvf <(curl -fsSL https://github.com/sabnzbd/sabnzbd/releases/download/$RELEASE/SABnzbd-${RELEASE}-src.tar.gz) + $STD \cp -r SABnzbd-${RELEASE}/* /opt/sabnzbd rm -rf SABnzbd-${RELEASE} cd /opt/sabnzbd - python3 -m pip install -r requirements.txt &>/dev/null + $STD python3 -m pip install -r requirements.txt echo "${RELEASE}" >/opt/${APP}_version.txt systemctl start sabnzbd.service msg_ok "Updated ${APP} to ${RELEASE}" diff --git a/ct/seelf.sh b/ct/seelf.sh index 481d6287..40d0a47a 100644 --- a/ct/seelf.sh +++ b/ct/seelf.sh @@ -44,7 +44,7 @@ function update_script() { tar -xzf v${RELEASE}.tar.gz cp -r seelf-${RELEASE}/ /opt/seelf cd /opt/seelf - make build &> /dev/null + $STD make build msg_ok "Updated $APP to v${RELEASE}" msg_info "Starting $APP" diff --git a/ct/semaphore.sh b/ct/semaphore.sh index a4d969fe..2dcf880f 100644 --- a/ct/semaphore.sh +++ b/ct/semaphore.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" cd /opt wget -q https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb - dpkg -i semaphore_${RELEASE}_linux_amd64.deb &>/dev/null + $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/sftpgo.sh b/ct/sftpgo.sh index 171e8f46..b1cb0055 100644 --- a/ct/sftpgo.sh +++ b/ct/sftpgo.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/smokeping.sh b/ct/smokeping.sh index 4f2b9f24..848f8004 100644 --- a/ct/smokeping.sh +++ b/ct/smokeping.sh @@ -29,8 +29,8 @@ function update_script() { fi msg_info "Updating ${APP}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/snipeit.sh b/ct/snipeit.sh index 0d52cc6a..bfc6ad32 100644 --- a/ct/snipeit.sh +++ b/ct/snipeit.sh @@ -30,11 +30,11 @@ function update_script() { RELEASE=$(curl -s https://api.github.com/repos/snipe/snipe-it/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating ${APP} to v${RELEASE}" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade mv /opt/snipe-it /opt/snipe-it-backup cd /opt - wget -q "https://github.com/snipe/snipe-it/archive/refs/tags/v${RELEASE}.zip" &>/dev/null + $STD wget -q "https://github.com/snipe/snipe-it/archive/refs/tags/v${RELEASE}.zip" unzip -q v${RELEASE}.zip mv snipe-it-${RELEASE} /opt/snipe-it cp /opt/snipe-it-backup/.env /opt/snipe-it/.env @@ -42,13 +42,13 @@ function update_script() { cp -r /opt/snipe-it-backup/storage/private_uploads /opt/snipe-it/storage/private_uploads cd /opt/snipe-it/ export COMPOSER_ALLOW_SUPERUSER=1 - composer install --no-dev --prefer-source &>/dev/null - composer dump-autoload &>/dev/null - php artisan migrate --force &>/dev/null - php artisan config:clear &>/dev/null - php artisan route:clear &>/dev/null - php artisan cache:clear &>/dev/null - php artisan view:clear &>/dev/null + $STD composer install --no-dev --prefer-source + $STD composer dump-autoload + $STD php artisan migrate --force + $STD php artisan config:clear + $STD php artisan route:clear + $STD php artisan cache:clear + $STD php artisan view:clear chown -R www-data: /opt/snipe-it chmod -R 755 /opt/snipe-it rm -rf /opt/v${RELEASE}.zip diff --git a/ct/spoolman.sh b/ct/spoolman.sh index 3bf55532..a587e360 100644 --- a/ct/spoolman.sh +++ b/ct/spoolman.sh @@ -41,7 +41,7 @@ function update_script() { wget -q https://github.com/Donkie/Spoolman/releases/download/${RELEASE}/spoolman.zip unzip -q spoolman.zip -d spoolman cd spoolman - pip3 install -r requirements.txt >/dev/null 2>&1 + $STD pip3 install -r requirements.txt wget -q https://raw.githubusercontent.com/Donkie/Spoolman/master/.env.example -O .env echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to ${RELEASE}" diff --git a/ct/sqlserver2022.sh b/ct/sqlserver2022.sh index e5cd23c6..bf5d2c74 100644 --- a/ct/sqlserver2022.sh +++ b/ct/sqlserver2022.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/stirling-pdf.sh b/ct/stirling-pdf.sh index d15f5edc..91aa7bae 100644 --- a/ct/stirling-pdf.sh +++ b/ct/stirling-pdf.sh @@ -30,15 +30,15 @@ function update_script() { msg_info "Updating ${APP}" systemctl stop stirlingpdf if [[ -n $(dpkg -l | grep -w ocrmypdf) ]] && [[ -z $(dpkg -l | grep -w qpdf) ]]; then - apt-get remove -y ocrmypdf &>/dev/null - apt-get install -y qpdf &>/dev/null + $STD apt-get remove -y ocrmypdf + $STD apt-get install -y qpdf fi RELEASE=$(curl -s https://api.github.com/repos/Stirling-Tools/Stirling-PDF/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') wget -q 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 - ./gradlew build &>/dev/null + $STD ./gradlew build cp -r ./build/libs/Stirling-PDF-*.jar /opt/Stirling-PDF/ cp -r scripts /opt/Stirling-PDF/ cd ~ diff --git a/ct/syncthing.sh b/ct/syncthing.sh index 5a41cc33..b7497921 100644 --- a/ct/syncthing.sh +++ b/ct/syncthing.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/tandoor.sh b/ct/tandoor.sh index edf1d00a..0508c759 100644 --- a/ct/tandoor.sh +++ b/ct/tandoor.sh @@ -33,15 +33,15 @@ function update_script() { msg_info "Updating ${APP} (Patience)" export $(cat /opt/tandoor/.env | grep "^[^#]" | xargs) cd /opt/tandoor/ - pip3 install -r requirements.txt >/dev/null 2>&1 - /usr/bin/python3 /opt/tandoor/manage.py migrate >/dev/null 2>&1 - /usr/bin/python3 /opt/tandoor/manage.py collectstatic --no-input >/dev/null 2>&1 - /usr/bin/python3 /opt/tandoor/manage.py collectstatic_js_reverse >/dev/null 2>&1 + $STD pip3 install -r requirements.txt + $STD /usr/bin/python3 /opt/tandoor/manage.py migrate + $STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic --no-input + $STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic_js_reverse cd /opt/tandoor/vue - yarn install >/dev/null 2>&1 - yarn build >/dev/null 2>&1 + $STD yarn install + $STD yarn build cd /opt/tandoor - python3 version.py &>/dev/null + $STD python3 version.py systemctl restart gunicorn_tandoor msg_ok "Updated ${APP}" fi diff --git a/ct/tasmoadmin.sh b/ct/tasmoadmin.sh index 402475ac..f091c58e 100644 --- a/ct/tasmoadmin.sh +++ b/ct/tasmoadmin.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/tasmocompiler.sh b/ct/tasmocompiler.sh index 275b31fa..6bbc0b49 100644 --- a/ct/tasmocompiler.sh +++ b/ct/tasmocompiler.sh @@ -40,10 +40,10 @@ function update_script() { tar xzf v${RELEASE}.tar.gz mv tasmocompiler-${RELEASE}/ /opt/tasmocompiler/ cd /opt/tasmocompiler - yarn install &> /dev/null + $STD yarn install export NODE_OPTIONS=--openssl-legacy-provider - npm i &> /dev/null - yarn build &> /dev/null + $STD npm i + $STD yarn build msg_ok "Updated $APP to v${RELEASE}" msg_info "Starting $APP" systemctl start tasmocompiler diff --git a/ct/tautulli.sh b/ct/tautulli.sh index f5574d66..8ed7bb49 100644 --- a/ct/tautulli.sh +++ b/ct/tautulli.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/tdarr.sh b/ct/tdarr.sh index b6b70c0f..1dcc8eb6 100644 --- a/ct/tdarr.sh +++ b/ct/tdarr.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/technitiumdns.sh b/ct/technitiumdns.sh index cda740e2..483d5eb3 100644 --- a/ct/technitiumdns.sh +++ b/ct/technitiumdns.sh @@ -31,12 +31,12 @@ function update_script() { if ! dpkg -s aspnetcore-runtime-8.0 >/dev/null 2>&1; then wget -q https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb - dpkg -i packages-microsoft-prod.deb &>/dev/null - apt-get update &>/dev/null - apt-get install -y aspnetcore-runtime-8.0 &>/dev/null + $STD dpkg -i packages-microsoft-prod.deb + $STD apt-get update + $STD apt-get install -y aspnetcore-runtime-8.0 rm packages-microsoft-prod.deb fi - bash <(curl -fsSL https://download.technitium.com/dns/install.sh) &>/dev/null + $STD bash <(curl -fsSL https://download.technitium.com/dns/install.sh) msg_ok "Updated Successfully" exit } diff --git a/ct/the-lounge.sh b/ct/the-lounge.sh index 6a0497b5..a15b3be5 100644 --- a/ct/the-lounge.sh +++ b/ct/the-lounge.sh @@ -34,7 +34,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating ${APP} to v${RELEASE}" - apt-get install --only-upgrade nodejs &>/dev/null + $STD apt-get install --only-upgrade nodejs cd /opt wget -q https://github.com/thelounge/thelounge-deb/releases/download/v${RELEASE}/thelounge_${RELEASE}_all.deb dpkg -i ./thelounge_${RELEASE}_all.deb diff --git a/ct/tianji.sh b/ct/tianji.sh index b0551f09..8a1fca82 100644 --- a/ct/tianji.sh +++ b/ct/tianji.sh @@ -41,15 +41,15 @@ function update_script() { mv tianji-${RELEASE} /opt/tianji cd tianji export NODE_OPTIONS="--max_old_space_size=4096" - pnpm install --filter @tianji/client... --config.dedupe-peer-dependents=false --frozen-lockfile >/dev/null 2>&1 - pnpm build:static >/dev/null 2>&1 - pnpm install --filter @tianji/server... --config.dedupe-peer-dependents=false >/dev/null 2>&1 - mkdir -p ./src/server/public >/dev/null 2>&1 - cp -r ./geo ./src/server/public >/dev/null 2>&1 - pnpm build:server >/dev/null 2>&1 + $STD pnpm install --filter @tianji/client... --config.dedupe-peer-dependents=false --frozen-lockfile + $STD pnpm build:static + $STD pnpm install --filter @tianji/server... --config.dedupe-peer-dependents=false + mkdir -p ./src/server/public + cp -r ./geo ./src/server/public + $STD pnpm build:server mv /opt/.env /opt/tianji/src/server/.env cd src/server - pnpm db:migrate:apply >/dev/null 2>&1 + $STD pnpm db:migrate:apply echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to v${RELEASE}" diff --git a/ct/transmission.sh b/ct/transmission.sh index 332a6042..a1bf1791 100644 --- a/ct/transmission.sh +++ b/ct/transmission.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" exit } diff --git a/ct/typesense.sh b/ct/typesense.sh index c2772a9c..677f8107 100644 --- a/ct/typesense.sh +++ b/ct/typesense.sh @@ -30,8 +30,8 @@ function update_script() { RELEASE=$(curl -s https://api.github.com/repos/typesense/typesense/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" else msg_ok "No update required. ${APP} is already at ${RELEASE}" diff --git a/ct/ubuntu.sh b/ct/ubuntu.sh index 6a170c3c..c49f7eda 100644 --- a/ct/ubuntu.sh +++ b/ct/ubuntu.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" exit } diff --git a/ct/umbrel.sh b/ct/umbrel.sh index eff5cccf..92878d5f 100644 --- a/ct/umbrel.sh +++ b/ct/umbrel.sh @@ -24,8 +24,8 @@ function update_script() { check_container_storage check_container_resources msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" exit } diff --git a/ct/unbound.sh b/ct/unbound.sh index 0a0402b2..23626bb2 100644 --- a/ct/unbound.sh +++ b/ct/unbound.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/unifi.sh b/ct/unifi.sh index ad5707e2..fe36c579 100644 --- a/ct/unifi.sh +++ b/ct/unifi.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP}" - apt-get update --allow-releaseinfo-change &>/dev/null - apt-get install -y unifi &>/dev/null + $STD apt-get update --allow-releaseinfo-change + $STD apt-get install -y unifi msg_ok "Updated Successfully" exit } diff --git a/ct/unmanic.sh b/ct/unmanic.sh index 267811b6..dc74a952 100644 --- a/ct/unmanic.sh +++ b/ct/unmanic.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - pip3 install -U unmanic &>/dev/null - apt-get -y upgrade &>/dev/null + $STD pip3 install -U unmanic + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/uptimekuma.sh b/ct/uptimekuma.sh index d2ce116f..b13bccc0 100644 --- a/ct/uptimekuma.sh +++ b/ct/uptimekuma.sh @@ -30,29 +30,29 @@ function update_script() { if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then if ! command -v npm >/dev/null 2>&1; then echo "Installing NPM..." - apt-get install -y npm >/dev/null 2>&1 + $STD apt-get install -y npm echo "Installed NPM..." fi fi LATEST=$(curl -sL https://api.github.com/repos/louislam/uptime-kuma/releases/latest | grep '"tag_name":' | cut -d'"' -f4) msg_info "Stopping ${APP}" - sudo systemctl stop uptime-kuma &>/dev/null + $STD sudo systemctl stop uptime-kuma msg_ok "Stopped ${APP}" cd /opt/uptime-kuma msg_info "Pulling ${APP} ${LATEST}" - git fetch --all &>/dev/null - git checkout $LATEST --force &>/dev/null + $STD git fetch --all + $STD git checkout $LATEST --force msg_ok "Pulled ${APP} ${LATEST}" msg_info "Updating ${APP} to ${LATEST}" - npm install --production &>/dev/null - npm run download-dist &>/dev/null + $STD npm install --production + $STD npm run download-dist msg_ok "Updated ${APP}" msg_info "Starting ${APP}" - sudo systemctl start uptime-kuma &>/dev/null + $STD sudo systemctl start uptime-kuma msg_ok "Started ${APP}" msg_ok "Updated Successfully" exit diff --git a/ct/urbackupserver.sh b/ct/urbackupserver.sh index 5383002b..d60372fa 100644 --- a/ct/urbackupserver.sh +++ b/ct/urbackupserver.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated Successfully" exit } diff --git a/ct/vaultwarden.sh b/ct/vaultwarden.sh index 51994677..0ac8bf55 100644 --- a/ct/vaultwarden.sh +++ b/ct/vaultwarden.sh @@ -48,9 +48,9 @@ function update_script() { msg_info "Updating VaultWarden to $VAULT (Patience)" cd ~ && rm -rf vaultwarden - git clone https://github.com/dani-garcia/vaultwarden &>/dev/null + $STD git clone https://github.com/dani-garcia/vaultwarden cd vaultwarden - cargo build --features "sqlite,mysql,postgresql" --release &>/dev/null + $STD cargo build --features "sqlite,mysql,postgresql" --release DIR=/usr/bin/vaultwarden if [ -d "$DIR" ]; then cp target/release/vaultwarden /usr/bin/ @@ -76,8 +76,8 @@ function update_script() { msg_ok "Stopped Vaultwarden" msg_info "Updating Web-Vault to $WVRELEASE" - curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/$WVRELEASE/bw_web_$WVRELEASE.tar.gz &>/dev/null - tar -zxf bw_web_$WVRELEASE.tar.gz -C /opt/vaultwarden/ &>/dev/null + $STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/$WVRELEASE/bw_web_$WVRELEASE.tar.gz + $STD tar -zxf bw_web_$WVRELEASE.tar.gz -C /opt/vaultwarden/ msg_ok "Updated Web-Vault" msg_info "Cleaning up" @@ -93,7 +93,7 @@ function update_script() { if [ "$UPD" == "3" ]; then if NEWTOKEN=$(whiptail --backtitle "Proxmox VE Helper Scripts" --passwordbox "Set the ADMIN_TOKEN" 10 58 3>&1 1>&2 2>&3); then if [[ -z "$NEWTOKEN" ]]; then exit; fi - if ! command -v argon2 >/dev/null 2>&1; then apt-get install -y argon2 &>/dev/null; fi + if ! command -v argon2 >/dev/null 2>&1; then $STD apt-get install -y argon2; fi TOKEN=$(echo -n ${NEWTOKEN} | argon2 "$(openssl rand -base64 32)" -t 2 -m 16 -p 4 -l 64 -e) sed -i "s|ADMIN_TOKEN=.*|ADMIN_TOKEN='${TOKEN}'|" /opt/vaultwarden/.env if [[ -f /opt/vaultwarden/data/config.json ]]; then diff --git a/ct/vikunja.sh b/ct/vikunja.sh index bea6381d..b6ac4bf0 100644 --- a/ct/vikunja.sh +++ b/ct/vikunja.sh @@ -37,7 +37,7 @@ function update_script() { cd /opt rm -rf /opt/vikunja/vikunja wget -q "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" - DEBIAN_FRONTEND=noninteractive dpkg -i vikunja-$RELEASE-amd64.deb &>/dev/null + $STD DEBIAN_FRONTEND=noninteractive dpkg -i vikunja-$RELEASE-amd64.deb echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" diff --git a/ct/wallos.sh b/ct/wallos.sh index 4f193e28..e2ec9507 100644 --- a/ct/wallos.sh +++ b/ct/wallos.sh @@ -44,7 +44,7 @@ function update_script() { chown -R www-data:www-data /opt/wallos chmod -R 755 /opt/wallos mkdir -p /var/log/cron - curl http://localhost/endpoints/db/migrate.php &>/dev/null + $STD curl http://localhost/endpoints/db/migrate.php echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" diff --git a/ct/watcharr.sh b/ct/watcharr.sh index dd0f7835..73daf7fc 100644 --- a/ct/watcharr.sh +++ b/ct/watcharr.sh @@ -45,8 +45,8 @@ function update_script() { cp -rf ${temp_folder}/Watcharr-${RELEASE}/* /opt/watcharr cd /opt/watcharr export GOOS=linux - npm i &> /dev/null - npm run build &> /dev/null + $STD npm i + $STD npm run build mv ./build ./server/ui cd server go mod download diff --git a/ct/whisparr.sh b/ct/whisparr.sh index f9561d9b..42a9d270 100644 --- a/ct/whisparr.sh +++ b/ct/whisparr.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/whoogle.sh b/ct/whoogle.sh index 8e8237b8..514d655c 100644 --- a/ct/whoogle.sh +++ b/ct/whoogle.sh @@ -28,7 +28,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - pip3 install whoogle-search --upgrade &>/dev/null + $STD pip3 install whoogle-search --upgrade systemctl restart whoogle.service msg_ok "Updated Successfully" exit diff --git a/ct/wikijs.sh b/ct/wikijs.sh index 73b5e97d..58ea8fff 100644 --- a/ct/wikijs.sh +++ b/ct/wikijs.sh @@ -46,7 +46,7 @@ function update_script() { msg_info "Restoring Data" cp -R ~/data-backup/* /opt/wikijs rm -rf ~/data-backup - npm rebuild sqlite3 &>/dev/null + $STD npm rebuild sqlite3 msg_ok "Restored Data" msg_info "Starting ${APP}" diff --git a/ct/yunohost.sh b/ct/yunohost.sh index 7bd72f11..3e3d5e5e 100644 --- a/ct/yunohost.sh +++ b/ct/yunohost.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-get -y upgrade msg_ok "Updated $APP LXC" exit } diff --git a/ct/zabbix.sh b/ct/zabbix.sh index 49bedcea..84229c8c 100644 --- a/ct/zabbix.sh +++ b/ct/zabbix.sh @@ -40,9 +40,9 @@ function update_script() { rm -Rf /etc/apt/sources.list.d/zabbix.list cd /tmp wget -q https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb - dpkg -i zabbix-release_latest+debian12_all.deb &>/dev/null - apt-get update &>/dev/null - apt-get install --only-upgrade zabbix-server-pgsql zabbix-frontend-php zabbix-agent2 zabbix-agent2-plugin-* &>/dev/null + $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-* msg_info "Starting ${APP} Services" systemctl start zabbix-server zabbix-agent2 diff --git a/ct/zammad.sh b/ct/zammad.sh index 5dfb4b3d..43f219e5 100644 --- a/ct/zammad.sh +++ b/ct/zammad.sh @@ -28,15 +28,15 @@ function update_script() { exit fi msg_info "Stopping Service" - systemctl stop zammad &>/dev/null + $STD systemctl stop zammad msg_info "Updating ${APP}" - apt-get update &>/dev/null - apt-mark hold zammad &>/dev/null - apt-get -y upgrade &>/dev/null - apt-mark unhold zammad &>/dev/null - apt-get -y upgrade &>/dev/null + $STD apt-get update + $STD apt-mark hold zammad + $STD apt-get -y upgrade + $STD apt-mark unhold zammad + $STD apt-get -y upgrade msg_info "Starting Service" - systemctl start zammad &>/dev/null + $STD systemctl start zammad msg_ok "Updated ${APP} LXC" exit } diff --git a/ct/zerotier-one.sh b/ct/zerotier-one.sh index f8a94787..ecbd8ac0 100644 --- a/ct/zerotier-one.sh +++ b/ct/zerotier-one.sh @@ -33,7 +33,7 @@ function update_script() { systemctl stop zerotier-one msg_ok "Stopping Service" msg_info "Updating ${APP}" - apt-get update &>/dev/null + $STD apt-get update apt-get -y upgrade msg_ok "Updated ${APP}" diff --git a/ct/zigbee2mqtt.sh b/ct/zigbee2mqtt.sh index 1eaca00c..508d513d 100644 --- a/ct/zigbee2mqtt.sh +++ b/ct/zigbee2mqtt.sh @@ -36,7 +36,7 @@ function update_script() { msg_info "Creating Backup" rm -rf /opt/${APP}_backup*.tar.gz mkdir -p /opt/z2m_backup - tar -czf /opt/z2m_backup/${APP}_backup_$(date +%Y%m%d%H%M%S).tar.gz -C /opt zigbee2mqtt &>/dev/null + $STD tar -czf /opt/z2m_backup/${APP}_backup_$(date +%Y%m%d%H%M%S).tar.gz -C /opt zigbee2mqtt mv /opt/zigbee2mqtt/data /opt/z2m_backup msg_ok "Backup Created" @@ -49,8 +49,8 @@ function update_script() { rm -rf /opt/zigbee2mqtt/data mv /opt/z2m_backup/data /opt/zigbee2mqtt cd /opt/zigbee2mqtt - pnpm install --frozen-lockfile &>/dev/null - pnpm build &>/dev/null + $STD pnpm install --frozen-lockfile + $STD pnpm build msg_ok "Updated Zigbee2MQTT" msg_info "Starting Service" diff --git a/ct/zipline.sh b/ct/zipline.sh index 4f590584..b02f044b 100644 --- a/ct/zipline.sh +++ b/ct/zipline.sh @@ -29,7 +29,7 @@ function update_script() { if ! command -v pnpm &>/dev/null; then msg_info "Installing pnpm" #export NODE_OPTIONS=--openssl-legacy-provider - npm install -g pnpm@latest &>/dev/null + $STD npm install -g pnpm@latest msg_ok "Installed pnpm" fi RELEASE=$(curl -s https://api.github.com/repos/diced/zipline/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') @@ -46,8 +46,8 @@ function update_script() { mv zipline-${RELEASE} /opt/zipline cd /opt/zipline mv /opt/.env /opt/zipline/.env - pnpm install &>/dev/null - pnpm build &>/dev/null + $STD pnpm install + $STD pnpm build echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" diff --git a/ct/zitadel.sh b/ct/zitadel.sh index ce97e205..f3f99c36 100644 --- a/ct/zitadel.sh +++ b/ct/zitadel.sh @@ -37,7 +37,7 @@ function update_script() { cd /tmp wget -qc https://github.com/zitadel/zitadel/releases/download/$RELEASE/zitadel-linux-amd64.tar.gz -O - | tar -xz mv zitadel-linux-amd64/zitadel /usr/local/bin - zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml --init-projections=true &>/dev/null + $STD zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml --init-projections=true echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to ${RELEASE}"