diff --git a/ct/2fauth.sh b/ct/2fauth.sh index 61f94c496..bb68cb3cb 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 34a405a86..85ca87333 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 57ebda107..990790ca2 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 d24f267f6..0aaa2a175 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 37ba6f51f..0db7408b9 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 d899d6072..fe92d5814 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 5e4dd6489..de6eb07ca 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 44beaf8e0..48e9a93ba 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 aec94f837..f628941f3 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 70e9b4722..9b5113a4e 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 f61806b1a..bfd90689f 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 ab6c664e1..a0f6e1dfa 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 a8e202d61..4e4001d1d 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 68adb8520..0191c4128 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 07fc43ead..04dc36547 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 086216c34..931830dd4 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 aa88988a8..ceaa963f7 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 6b54d8844..e6df8eb1a 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 dcbc3439b..8ce0e6783 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 1cb34a39a..0a2337acf 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 38f2502f7..93c9bf63e 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 125c9df12..3ccd702f0 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 70bbea020..6207822f3 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 ba8177f32..e226ecd20 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 fa08d2b6c..cf79db906 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 75e1f9363..4c3896a74 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 6b0350058..508465b8b 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 d1b482be5..64057fa4d 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 d830c735e..b63e6085b 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 6481b3a19..64282ba48 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 85db1bb9d..aaadfa2c3 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 bef7c610f..f79a6ba51 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 d0ff3a27a..c1347b41c 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 63156dfe5..e5680d816 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 526fdcd59..1a5dbd557 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 379189fe0..5aa325317 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 ebada4986..7a42a86ec 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 ffed4bf22..5beed3753 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 83035b0ff..ab37a164b 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 279513d25..0d31e2e96 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 1302bb944..15d96efab 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 f459717c2..b24891889 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 fd7ef36da..85f181a9c 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 71aff0b16..6cd1946a5 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 97dddac16..7a24f0a85 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 9e050c032..eb866dca8 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 15488940d..eee1bc12a 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 720829e5b..f9c74d2a9 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 d04dced8c..3d4671da4 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 e4a295209..f4bfbbecb 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 bec679b03..1b55493d9 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 570b64354..9a8591897 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 ac67f717d..4e22f6e84 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 f68d0e31c..3d44e6fba 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 4d479a870..6341716ae 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 bbeb4ae0a..a40f3ac21 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 7a704f864..2ffd78c83 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 96e14c1c3..437bf5c47 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 3a00ca4bf..8b03eafbd 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 64dfde90d..31af04542 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 76d4adba3..757ad69db 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 e1a967057..56a140132 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 90bffaa77..84875d69a 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 5f020a486..0a3475026 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 a1c7592c5..0ce059c28 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 732033d15..a224cd633 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 e7b5d26ca..60b2acd80 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 02eca74e2..88ca03b1d 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 fecac4716..4ffd6657d 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 485962870..910d00bd2 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 0f9b05664..b19d72690 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 6f8c2543d..621182dc7 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 deaf65798..42107309f 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 392da311e..96f2f5368 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 3a43f7e1a..7c84f2197 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 89904cfcc..2cf0490d0 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 8de9cba56..4594fa8d6 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 794436921..1d6cd221d 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 387c7db8f..c35ac114f 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 38b804d25..06bc93428 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 32e280d0e..a271f556a 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 ed981d2d4..3049d9e70 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 219a0021a..6db15b373 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 dae1463ee..687cf46dd 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 c18cdb4ec..76065b975 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 c44065b9d..08d359944 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 7b8713fb6..8321d7d6a 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 7317abe7f..4b79273a8 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 e732b81cc..0dd171dec 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 78ef16ab4..81bfcec4d 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 35fb307a8..ebcbe69cd 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 a5f86aeec..57279e4ec 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 25fd271f3..f701fd6be 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 ecae89545..7604c22b8 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 9b2641445..7a34ae6c6 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 16db56480..e1f706d06 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 81f15e5a0..7b946bc16 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 43aab08ac..24dc9d540 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 d140710da..17fff9d8b 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 2e14369f4..a408543f5 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 a69accc03..c4f4660bd 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 c4e02d1d5..60cd99faf 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 2a62c7b59..df89acd28 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 d7f114570..a2df14f21 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 fbdf78466..9bab05f48 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 fd59ce1e2..fc18a49a4 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 364561e0c..c4f6de890 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 9e946fdc3..0187e06d9 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 2f34972cb..0283015ae 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 e22660859..f742e127d 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 ceb3856c4..0f7b3ea3c 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 284f0ed58..cf885e062 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 850a8120b..fb79e5f59 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 69b10a582..4987f816a 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 671a45826..e51a68d98 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 afdbbdb6f..ea3627bad 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 654bbc4b1..30b1656a3 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 3afe55565..8978e4ee9 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 393847500..5b4fa0d48 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 a5a6b8967..317fc0e63 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 1d5ea16ae..1737e5b81 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 357061eb6..0bb63efe6 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 0534068d8..98cb65b6a 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 b98543283..16e306126 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 27f9ccf5d..00a5343fd 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 481d6287f..40d0a47a0 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 a4d969fe6..2dcf880fc 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 171e8f46a..b1cb00553 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 4f2b9f247..848f8004e 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 0d52cc6af..bfc6ad32d 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 3bf555326..a587e360e 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 e5cd23c6f..bf5d2c74d 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 d15f5edcf..91aa7bae9 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 5a41cc332..b7497921e 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 edf1d00a7..0508c759a 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 402475ac1..f091c58ef 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 275b31fa0..6bbc0b498 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 f5574d668..8ed7bb49b 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 b6b70c0f2..1dcc8eb67 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 cda740e2c..483d5eb34 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 6a0497b59..a15b3be5a 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 b0551f09a..8a1fca82a 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 332a6042d..a1bf17919 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 c2772a9cb..677f8107c 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 6a170c3cb..c49f7eda4 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 eff5cccf9..92878d5f2 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 0a0402b26..23626bb2b 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 ad5707e20..fe36c5798 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 267811b68..dc74a952f 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 d2ce116f6..b13bccc06 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 5383002b3..d60372faf 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 519946776..0ac8bf550 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 bea6381d7..b6ac4bf01 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 4f193e283..e2ec95070 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 dd0f7835a..73daf7fc3 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 f9561d9b2..42a9d270e 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 8e8237b89..514d655c2 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 73b5e97d3..58ea8fff6 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 7bd72f112..3e3d5e5e7 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 49bedcea6..84229c8c0 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 5dfb4b3d0..43f219e5f 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 f8a94787d..ecbd8ac0e 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 1eaca00c8..508d513d7 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 4f5905847..b02f044be 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 ce97e205a..f3f99c361 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}"