From bfcda5d07ac30e751af964cf4fa57f4a61468dbe Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 7 Oct 2025 21:40:31 +0200 Subject: [PATCH] Bump W-V Scripts to Debian 13 (#8176) * bump various scripts (V - W) to debian 13 * Update install/wizarr-install.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add apt clean command to cleanup process * Update ct/wireguard.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ct/vaultwarden.sh | 28 +++++----- ct/victoriametrics.sh | 12 ++--- ct/vikunja.sh | 16 +++--- ct/wallos.sh | 11 ++-- ct/wastebin.sh | 10 ++-- ct/watcharr.sh | 20 +++---- ct/watchyourlan.sh | 6 +-- ct/wavelog.sh | 8 +-- ct/web-check.sh | 22 ++++---- ct/wger.sh | 19 ++++--- ct/whisparr.sh | 27 +++++----- ct/wikijs.sh | 19 +++---- ct/wireguard.sh | 13 ++--- ct/wizarr.sh | 18 +++---- ct/wordpress.sh | 20 +++---- frontend/public/json/vaultwarden.json | 2 +- frontend/public/json/victoriametrics.json | 2 +- frontend/public/json/vikunja.json | 2 +- frontend/public/json/wallos.json | 2 +- frontend/public/json/wastebin.json | 2 +- frontend/public/json/watcharr.json | 66 +++++++++++------------ frontend/public/json/watchyourlan.json | 2 +- frontend/public/json/wavelog.json | 2 +- frontend/public/json/web-check.json | 2 +- frontend/public/json/wger.json | 2 +- frontend/public/json/whisparr.json | 2 +- frontend/public/json/wikijs.json | 2 +- frontend/public/json/wireguard.json | 2 +- frontend/public/json/wizarr.json | 2 +- frontend/public/json/wordpress.json | 2 +- install/vaultwarden-install.sh | 10 ++-- install/verdaccio-install.sh | 3 +- install/victoriametrics-install.sh | 5 +- install/vikunja-install.sh | 17 +++--- install/wallos-install.sh | 7 +-- install/wastebin-install.sh | 11 ++-- install/watcharr-install.sh | 15 +++--- install/watchyourlan-install.sh | 7 +-- install/wavelog-install.sh | 7 +-- install/web-check-install.sh | 33 +++++++----- install/wger-install.sh | 27 +++++----- install/whisparr-install.sh | 10 ++-- install/wikijs-install.sh | 9 ++-- install/wireguard-install.sh | 13 ++--- install/wizarr-install.sh | 19 +++---- install/wordpress-install.sh | 9 ++-- 46 files changed, 282 insertions(+), 263 deletions(-) diff --git a/ct/vaultwarden.sh b/ct/vaultwarden.sh index 0129f4174..11a9b6ccf 100644 --- a/ct/vaultwarden.sh +++ b/ct/vaultwarden.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-4}" var_ram="${var_ram:-6144}" var_disk="${var_disk:-20}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -42,14 +42,14 @@ function update_script() { 3>&1 1>&2 2>&3) if [ "$UPD" == "1" ]; then - msg_info "Stopping Vaultwarden" - systemctl stop vaultwarden.service - msg_ok "Stopped Vaultwarden" + msg_info "Stopping Service" + systemctl stop vaultwarden + msg_ok "Stopped Service" msg_info "Updating VaultWarden to $VAULT (Patience)" cd ~ && rm -rf vaultwarden $STD git clone https://github.com/dani-garcia/vaultwarden - cd vaultwarden + cd vaultwarden || exit $STD cargo build --features "sqlite,mysql,postgresql" --release DIR=/usr/bin/vaultwarden if [ -d "$DIR" ]; then @@ -63,17 +63,17 @@ function update_script() { cd ~ && rm -rf vaultwarden msg_ok "Cleaned" - msg_info "Starting Vaultwarden" - systemctl start vaultwarden.service - msg_ok "Started Vaultwarden" + msg_info "Starting Service" + systemctl start vaultwarden + msg_ok "Started Service" msg_ok "$VAULT Update Successful" exit fi if [ "$UPD" == "2" ]; then - msg_info "Stopping Vaultwarden" - systemctl stop vaultwarden.service - msg_ok "Stopped Vaultwarden" + msg_info "Stopping Service" + systemctl stop vaultwarden + msg_ok "Stopped Service" msg_info "Updating Web-Vault to $WVRELEASE" $STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/"$WVRELEASE"/bw_web_"$WVRELEASE".tar.gz @@ -84,9 +84,9 @@ function update_script() { rm bw_web_"$WVRELEASE".tar.gz msg_ok "Cleaned" - msg_info "Starting Vaultwarden" - systemctl start vaultwarden.service - msg_ok "Started Vaultwarden" + msg_info "Starting Service" + systemctl start vaultwarden + msg_ok "Started Service" msg_ok "$WVRELEASE Update Successful" exit fi diff --git a/ct/victoriametrics.sh b/ct/victoriametrics.sh index d6eac1dac..af7de16ef 100644 --- a/ct/victoriametrics.sh +++ b/ct/victoriametrics.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" var_disk="${var_disk:-16}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -29,10 +29,10 @@ function update_script() { fi if check_for_gh_release "victoriametrics" "VictoriaMetrics/VictoriaMetrics"; then - msg_info "Stopping $APP" + msg_info "Stopping Service" systemctl stop victoriametrics [[ -f /etc/systemd/system/victoriametrics-logs.service ]] && systemctl stop victoriametrics-logs - msg_ok "Stopped $APP" + msg_ok "Stopped Service" victoriametrics_filename=$(curl -fsSL "https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics/releases/latest" | jq -r '.assets[].name' | @@ -50,11 +50,11 @@ function update_script() { fi chmod +x /opt/victoriametrics/* - msg_info "Starting $APP" + msg_info "Starting Service" systemctl start victoriametrics [[ -f /etc/systemd/system/victoriametrics-logs.service ]] && systemctl start victoriametrics-logs - msg_ok "Started $APP" - msg_ok "Updated Successfully" + msg_ok "Started Service" + msg_ok "Updated Successfully!" fi exit } diff --git a/ct/vikunja.sh b/ct/vikunja.sh index a827d8673..88611356e 100644 --- a/ct/vikunja.sh +++ b/ct/vikunja.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-1024}" var_disk="${var_disk:-4}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -29,25 +29,25 @@ function update_script() { fi RELEASE=$(curl -fsSL https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1) if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop vikunja - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating ${APP} to ${RELEASE}" - cd /opt + cd /opt || exit rm -rf /opt/vikunja/vikunja curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o $(basename "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb") export DEBIAN_FRONTEND=noninteractive - $STD dpkg -i vikunja-$RELEASE-amd64.deb + $STD dpkg -i vikunja-"$RELEASE"-amd64.deb echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start vikunja - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning Up" - rm -rf /opt/vikunja-$RELEASE-amd64.deb + rm -rf /opt/vikunja-"$RELEASE"-amd64.deb msg_ok "Cleaned" msg_ok "Updated Successfully" else diff --git a/ct/wallos.sh b/ct/wallos.sh index 387b8f9fc..004236852 100644 --- a/ct/wallos.sh +++ b/ct/wallos.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-1024}" var_disk="${var_disk:-5}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -35,10 +35,9 @@ function update_script() { mv /opt/wallos/images/uploads/logos /opt/logos/ msg_ok "Backup created" - rm -rf /opt/wallos - fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball" - msg_info "Configuring ${APP}" + msg_info "Configuring Wallos" rm -rf /opt/wallos/db/wallos.empty.db mv /opt/wallos.db /opt/wallos/db/wallos.db mv /opt/logos/* /opt/wallos/images/uploads/logos @@ -49,12 +48,12 @@ function update_script() { chmod -R 755 /opt/wallos mkdir -p /var/log/cron $STD curl http://localhost/endpoints/db/migrate.php - msg_ok "Configured ${APP}" + msg_ok "Configured Wallos" msg_info "Reload Apache2" systemctl reload apache2 msg_ok "Apache2 Reloaded" - msg_ok "Updated Successfully" + msg_ok "Updated Successfully!" fi exit } diff --git a/ct/wastebin.sh b/ct/wastebin.sh index d821faa92..19f0808b7 100644 --- a/ct/wastebin.sh +++ b/ct/wastebin.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-1024}" var_disk="${var_disk:-4}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -28,8 +28,8 @@ function update_script() { exit fi if ! [[ $(dpkg -s zstd 2>/dev/null) ]]; then - $STD apt-get update - $STD apt-get install -y zstd + $STD apt update + $STD apt install -y zstd fi RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') # Dirty-Fix 03/2025 for missing APP_version.txt on old installations, set to pre-latest release @@ -69,7 +69,7 @@ EOF msg_info "Updating Wastebin" temp_file=$(mktemp) curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst" -o "$temp_file" - tar -xf $temp_file + tar -xf "$temp_file" cp -f wastebin* /opt/wastebin/ chmod +x /opt/wastebin/wastebin chmod +x /opt/wastebin/wastebin-ctl @@ -81,7 +81,7 @@ EOF msg_ok "Started Wastebin" msg_info "Cleaning Up" - rm -f $temp_file + rm -f "$temp_file" msg_ok "Cleanup Completed" msg_ok "Updated Successfully" else diff --git a/ct/watcharr.sh b/ct/watcharr.sh index 2bf0a1b54..aacd3015c 100644 --- a/ct/watcharr.sh +++ b/ct/watcharr.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-1024}" var_disk="${var_disk:-4}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -29,29 +29,29 @@ function update_script() { fi if check_for_gh_release "watcharr" "sbondCo/Watcharr"; then - msg_info "Stopping $APP" + msg_info "Stopping Service" systemctl stop watcharr - msg_ok "Stopped $APP" + msg_ok "Stopped Service" rm -f /opt/watcharr/server/watcharr rm -rf /opt/watcharr/server/ui fetch_and_deploy_gh_release "watcharr" "sbondCo/Watcharr" "tarball" - msg_info "Updating $APP" - cd /opt/watcharr + msg_info "Updating Watcharr" + cd /opt/watcharr || exit export GOOS=linux $STD npm i $STD npm run build mv ./build ./server/ui - cd server + cd server || exit $STD go mod download $STD go build -o ./watcharr - msg_ok "Updated $APP" + msg_ok "Updated Watcharr" - msg_info "Starting $APP" + msg_info "Starting Service" systemctl start watcharr - msg_ok "Started $APP" - msg_ok "Update Successfully" + msg_ok "Started Service" + msg_ok "Update Successfully!" fi exit } diff --git a/ct/watchyourlan.sh b/ct/watchyourlan.sh index e4401908c..b374d26e4 100644 --- a/ct/watchyourlan.sh +++ b/ct/watchyourlan.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-512}" var_disk="${var_disk:-2}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -30,7 +30,7 @@ function update_script() { if check_for_gh_release "watchyourlan" "aceberg/WatchYourLAN"; then msg_info "Stopping service" - systemctl stop watchyourlan.service + systemctl stop watchyourlan msg_ok "Service stopped" cp -R /data/config.yaml ~/config.yaml @@ -45,7 +45,7 @@ function update_script() { msg_info "Starting service" systemctl enable -q --now watchyourlan msg_ok "Service started" - msg_ok "Updated Successfully" + msg_ok "Updated Successfully!" fi exit } diff --git a/ct/wavelog.sh b/ct/wavelog.sh index 0d677ba12..4516739c6 100644 --- a/ct/wavelog.sh +++ b/ct/wavelog.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-512}" var_disk="${var_disk:-2}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -45,7 +45,7 @@ function update_script() { rm -rf /opt/wavelog fetch_and_deploy_gh_release "wavelog" "wavelog/wavelog" "tarball" - msg_info "Updating ${APP}" + msg_info "Updating Wavelog" rm -rf /opt/wavelog/install mv /opt/config.php /opt/wavelog/application/config/config.php mv /opt/database.php /opt/wavelog/application/config/database.php @@ -57,12 +57,12 @@ function update_script() { chown -R www-data:www-data /opt/wavelog/ find /opt/wavelog/ -type d -exec chmod 755 {} \; find /opt/wavelog/ -type f -exec chmod 664 {} \; - msg_ok "Updated ${APP}" + msg_ok "Updated Wavelog" msg_info "Starting Services" systemctl start apache2 msg_ok "Started Services" - msg_ok "Updated Successfully" + msg_ok "Updated Successfully!" fi exit } diff --git a/ct/web-check.sh b/ct/web-check.sh index 635ebac48..ab5382ae5 100644 --- a/ct/web-check.sh +++ b/ct/web-check.sh @@ -6,12 +6,12 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV # Source: https://github.com/Lissy93/web-check APP="web-check" -TAGS="network;analysis" +var_tags="network;analysis" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" var_disk="${var_disk:-12}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -20,15 +20,15 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /opt/web-check ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_error "Currently we don't provide an update function for this ${APP}." + header_info + check_container_storage + check_container_resources + if [[ ! -d /opt/web-check ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + msg_error "Currently we don't provide an update function for this App." + exit } start @@ -38,4 +38,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" diff --git a/ct/wger.sh b/ct/wger.sh index cd0e4d267..7c348d513 100644 --- a/ct/wger.sh +++ b/ct/wger.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-1024}" var_disk="${var_disk:-6}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -29,20 +29,20 @@ function update_script() { fi RELEASE=$(curl -fsSL https://api.github.com/repos/wger-project/wger/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 "Stopping $APP" + msg_info "Stopping Service" systemctl stop wger - msg_ok "Stopped $APP" + msg_ok "Stopped Service" msg_info "Updating $APP to v${RELEASE}" temp_file=$(mktemp) curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o "$temp_file" tar xzf "$temp_file" cp -rf wger-"$RELEASE"/* /home/wger/src - cd /home/wger/src - python3 manage.py migrate &>/dev/null - yarn install &>/dev/null - yarn build:css:sass &>/dev/null - python3 manage.py collectstatic --noinput &>/dev/null + cd /home/wger/src || exit + $STD python3 manage.py migrate + $STD yarn install + $STD yarn build:css:sass + $STD python3 manage.py collectstatic --noinput echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" @@ -53,8 +53,7 @@ function update_script() { msg_info "Cleaning Up" rm -rf "$temp_file" msg_ok "Cleanup Completed" - - msg_ok "Update Successful" + msg_ok "Updated Successfully!" else msg_ok "No update required. ${APP} is already at v${RELEASE}" fi diff --git a/ct/whisparr.sh b/ct/whisparr.sh index 29731e2b5..820a5ca21 100644 --- a/ct/whisparr.sh +++ b/ct/whisparr.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-1024}" var_disk="${var_disk:-4}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -20,18 +20,19 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /var/lib/whisparr ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_info "Updating $APP LXC" - $STD apt-get update - $STD apt-get -y upgrade - msg_ok "Updated $APP LXC" + header_info + check_container_storage + check_container_resources + if [[ ! -d /var/lib/whisparr ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + msg_info "Updating Whisparr" + $STD apt update + $STD apt -y upgrade + msg_ok "Updated Whisparr" + msg_ok "Updated Successfully!" + exit } start @@ -41,4 +42,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6969${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6969${CL}" diff --git a/ct/wikijs.sh b/ct/wikijs.sh index 0f770f532..299b726ed 100644 --- a/ct/wikijs.sh +++ b/ct/wikijs.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" var_disk="${var_disk:-10}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -27,7 +27,9 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - NODE_VERSION="22" NODE_MODULE="yarn@latest,node-gyp" setup_nodejs + + NODE_VERSION="22" NODE_MODULE="yarn,node-gyp" setup_nodejs + if check_for_gh_release "wikijs" "requarks/wiki"; then msg_info "Verifying whether ${APP}' new release is v3.x+ and current install uses SQLite." SQLITE_INSTALL=$([ -f /opt/wikijs/db.sqlite ] && echo "true" || echo "false") @@ -37,9 +39,9 @@ function update_script() { fi msg_ok "There is an update path available for ${APP}" - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop wikijs - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Backing up Data" mkdir /opt/wikijs-backup @@ -47,22 +49,21 @@ function update_script() { cp -R /opt/wikijs/{config.yml,/data} /opt/wikijs-backup msg_ok "Backed up Data" - rm -rf /opt/wikijs/* - fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz" msg_info "Restoring Data" cp -R /opt/wikijs-backup/* /opt/wikijs $SQLITE_INSTALL && $STD npm rebuild sqlite3 msg_ok "Restored Data" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start wikijs - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning Up" rm -rf /opt/wikijs-backup msg_ok "Cleanup Completed" - msg_ok "Updated Successfully" + msg_ok "Updated Successfully!" fi exit } diff --git a/ct/wireguard.sh b/ct/wireguard.sh index 857fd51b7..045f23fa6 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-512}" var_disk="${var_disk:-4}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" var_tun="${var_tun:-1}" @@ -30,18 +30,19 @@ function update_script() { fi if ! dpkg -s git >/dev/null 2>&1; then msg_info "Installing git" - $STD apt-get update - $STD apt-get install -y git + $STD apt update + $STD apt install -y git msg_ok "Installed git" fi - apt-get update - apt-get -y upgrade + apt update + apt -y upgrade if [[ -d /etc/wgdashboard ]]; then sleep 2 - cd /etc/wgdashboard/src + cd /etc/wgdashboard/src || exit ./wgd.sh update ./wgd.sh start fi + msg_ok "Updated Successfully!" exit } diff --git a/ct/wizarr.sh b/ct/wizarr.sh index d6c1873f2..09b4f69cd 100644 --- a/ct/wizarr.sh +++ b/ct/wizarr.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-1024}" var_disk="${var_disk:-4}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -32,9 +32,9 @@ function update_script() { setup_uv if check_for_gh_release "wizarr" "wizarrrr/wizarr"; then - msg_info "Stopping $APP" + msg_info "Stopping Service" systemctl stop wizarr - msg_ok "Stopped $APP" + msg_ok "Stopped Service" msg_info "Creating Backup" BACKUP_FILE="/opt/wizarr_backup_$(date +%F).tar.gz" @@ -44,8 +44,8 @@ function update_script() { fetch_and_deploy_gh_release "wizarr" "wizarrrr/wizarr" - msg_info "Updating $APP" - cd /opt/wizarr + msg_info "Updating Wizarr" + cd /opt/wizarr || exit $STD /usr/local/bin/uv sync --frozen $STD /usr/local/bin/uv run --frozen pybabel compile -d app/translations $STD npm --prefix app/static install @@ -56,16 +56,16 @@ function update_script() { if ! grep -q 'frozen' /opt/wizarr/start.sh; then sed -i 's/run/& --frozen/' /opt/wizarr/start.sh fi - msg_ok "Updated $APP" + msg_ok "Updated Wizarr" - msg_info "Starting $APP" + msg_info "Starting Service" systemctl start wizarr - msg_ok "Started $APP" + msg_ok "Started Service" msg_info "Cleaning Up" rm -rf "$BACKUP_FILE" msg_ok "Cleanup Completed" - msg_ok "Updated Successfully" + msg_ok "Updated Successfully!" fi exit } diff --git a/ct/wordpress.sh b/ct/wordpress.sh index 5282023d0..ee7208092 100644 --- a/ct/wordpress.sh +++ b/ct/wordpress.sh @@ -12,7 +12,7 @@ var_disk="${var_disk:-5}" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" header_info "$APP" variables @@ -20,15 +20,15 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /var/www/html/wordpress ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_error "Wordpress should be updated via the user interface." + header_info + check_container_storage + check_container_resources + if [[ ! -d /var/www/html/wordpress ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + msg_error "Wordpress should be updated via the user interface." + exit } start @@ -38,4 +38,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN} ${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}/${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}/${CL}" diff --git a/frontend/public/json/vaultwarden.json b/frontend/public/json/vaultwarden.json index 584d37298..c058ccdff 100644 --- a/frontend/public/json/vaultwarden.json +++ b/frontend/public/json/vaultwarden.json @@ -23,7 +23,7 @@ "ram": 6144, "hdd": 20, "os": "debian", - "version": "12" + "version": "13" } }, { diff --git a/frontend/public/json/victoriametrics.json b/frontend/public/json/victoriametrics.json index 77371cd73..22be89bfa 100644 --- a/frontend/public/json/victoriametrics.json +++ b/frontend/public/json/victoriametrics.json @@ -23,7 +23,7 @@ "ram": 2048, "hdd": 16, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/vikunja.json b/frontend/public/json/vikunja.json index f7044c2f3..8d759b1a9 100644 --- a/frontend/public/json/vikunja.json +++ b/frontend/public/json/vikunja.json @@ -23,7 +23,7 @@ "ram": 1024, "hdd": 4, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/wallos.json b/frontend/public/json/wallos.json index e69e2c03c..372b9455e 100644 --- a/frontend/public/json/wallos.json +++ b/frontend/public/json/wallos.json @@ -23,7 +23,7 @@ "ram": 1024, "hdd": 5, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/wastebin.json b/frontend/public/json/wastebin.json index f96405119..6e17a6005 100644 --- a/frontend/public/json/wastebin.json +++ b/frontend/public/json/wastebin.json @@ -23,7 +23,7 @@ "ram": 1024, "hdd": 4, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/watcharr.json b/frontend/public/json/watcharr.json index 20f546a18..f44c59c7f 100644 --- a/frontend/public/json/watcharr.json +++ b/frontend/public/json/watcharr.json @@ -1,35 +1,35 @@ { - "name": "Watcharr", - "slug": "watcharr", - "categories": [ - 13 - ], - "date_created": "2025-02-12", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 3080, - "documentation": "https://watcharr.app/docs/introduction", - "website": "https://watcharr.app/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/watcharr.webp", - "config_path": "", - "description": "Open source, self-hostable watched list for all your content with user authentication, modern and clean UI and a very simple setup.", - "install_methods": [ - { - "type": "default", - "script": "ct/watcharr.sh", - "resources": { - "cpu": 1, - "ram": 1024, - "hdd": 4, - "os": "debian", - "version": "12" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [] + "name": "Watcharr", + "slug": "watcharr", + "categories": [ + 13 + ], + "date_created": "2025-02-12", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 3080, + "documentation": "https://watcharr.app/docs/introduction", + "website": "https://watcharr.app/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/watcharr.webp", + "config_path": "", + "description": "Open source, self-hostable watched list for all your content with user authentication, modern and clean UI and a very simple setup.", + "install_methods": [ + { + "type": "default", + "script": "ct/watcharr.sh", + "resources": { + "cpu": 1, + "ram": 1024, + "hdd": 4, + "os": "debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] } diff --git a/frontend/public/json/watchyourlan.json b/frontend/public/json/watchyourlan.json index 25686a1da..472662405 100644 --- a/frontend/public/json/watchyourlan.json +++ b/frontend/public/json/watchyourlan.json @@ -23,7 +23,7 @@ "ram": 512, "hdd": 2, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/wavelog.json b/frontend/public/json/wavelog.json index b9796efce..1e31b8222 100644 --- a/frontend/public/json/wavelog.json +++ b/frontend/public/json/wavelog.json @@ -23,7 +23,7 @@ "ram": 512, "hdd": 2, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/web-check.json b/frontend/public/json/web-check.json index b4931d3c8..2c59d1b14 100644 --- a/frontend/public/json/web-check.json +++ b/frontend/public/json/web-check.json @@ -23,7 +23,7 @@ "ram": 2048, "hdd": 12, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/wger.json b/frontend/public/json/wger.json index 67f1b37cd..cd59a2347 100644 --- a/frontend/public/json/wger.json +++ b/frontend/public/json/wger.json @@ -23,7 +23,7 @@ "ram": 1024, "hdd": 6, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/whisparr.json b/frontend/public/json/whisparr.json index 86007e109..ac5302428 100644 --- a/frontend/public/json/whisparr.json +++ b/frontend/public/json/whisparr.json @@ -23,7 +23,7 @@ "ram": 1024, "hdd": 4, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/wikijs.json b/frontend/public/json/wikijs.json index 3f623074a..7e4525b35 100644 --- a/frontend/public/json/wikijs.json +++ b/frontend/public/json/wikijs.json @@ -23,7 +23,7 @@ "ram": 2048, "hdd": 7, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/wireguard.json b/frontend/public/json/wireguard.json index f122cbf4d..a26317f93 100644 --- a/frontend/public/json/wireguard.json +++ b/frontend/public/json/wireguard.json @@ -23,7 +23,7 @@ "ram": 512, "hdd": 4, "os": "debian", - "version": "12" + "version": "13" } }, { diff --git a/frontend/public/json/wizarr.json b/frontend/public/json/wizarr.json index 5cd5ca8e3..ddf332a49 100644 --- a/frontend/public/json/wizarr.json +++ b/frontend/public/json/wizarr.json @@ -24,7 +24,7 @@ "ram": 1024, "hdd": 4, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/frontend/public/json/wordpress.json b/frontend/public/json/wordpress.json index b07466e3e..8f3a4b5bd 100644 --- a/frontend/public/json/wordpress.json +++ b/frontend/public/json/wordpress.json @@ -23,7 +23,7 @@ "ram": 2048, "hdd": 5, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/install/vaultwarden-install.sh b/install/vaultwarden-install.sh index fae4702a7..897eb4db2 100644 --- a/install/vaultwarden-install.sh +++ b/install/vaultwarden-install.sh @@ -14,8 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get update -$STD apt-get install -y git \ +$STD apt install -y git \ build-essential \ pkgconf \ libssl-dev \ @@ -38,7 +37,7 @@ msg_ok "Installed Rust" msg_info "Building Vaultwarden ${VAULT} (Patience)" $STD git clone https://github.com/dani-garcia/vaultwarden -cd vaultwarden +cd vaultwarden || exit $STD cargo build --features "sqlite,mysql,postgresql" --release msg_ok "Built Vaultwarden ${VAULT}" @@ -110,6 +109,7 @@ motd_ssh customize msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/verdaccio-install.sh b/install/verdaccio-install.sh index 1586217b5..f44d420d1 100644 --- a/install/verdaccio-install.sh +++ b/install/verdaccio-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ +$STD apt install -y \ ca-certificates \ build-essential msg_ok "Installed Dependencies" @@ -85,7 +85,6 @@ EOF systemctl enable -q --now verdaccio msg_ok "Created Service" - motd_ssh customize diff --git a/install/victoriametrics-install.sh b/install/victoriametrics-install.sh index 82a93ade8..9b2547211 100644 --- a/install/victoriametrics-install.sh +++ b/install/victoriametrics-install.sh @@ -77,6 +77,7 @@ motd_ssh customize msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/vikunja-install.sh b/install/vikunja-install.sh index f56d073d3..9dec35dbb 100644 --- a/install/vikunja-install.sh +++ b/install/vikunja-install.sh @@ -14,26 +14,27 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y make +$STD apt install -y make msg_ok "Installed Dependencies" msg_info "Setup Vikunja (Patience)" -cd /opt +cd /opt || exit RELEASE=$(curl -fsSL https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1) -curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o vikunja-$RELEASE-amd64.deb -$STD dpkg -i vikunja-$RELEASE-amd64.deb +curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" -o vikunja-"$RELEASE"-amd64.deb +$STD dpkg -i vikunja-"$RELEASE"-amd64.deb sed -i 's|^ timezone: .*| timezone: UTC|' /etc/vikunja/config.yml sed -i 's|"./vikunja.db"|"/etc/vikunja/vikunja.db"|' /etc/vikunja/config.yml sed -i 's|./files|/etc/vikunja/files|' /etc/vikunja/config.yml systemctl start vikunja.service -echo "${RELEASE}" >/opt/${APPLICATION}_version.txt +echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt msg_ok "Installed Vikunja" motd_ssh customize msg_info "Cleaning up" -rm -rf /opt/vikunja-$RELEASE-amd64.deb -$STD apt-get autoremove -$STD apt-get autoclean +rm -rf /opt/vikunja-"$RELEASE"-amd64.deb +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/wallos-install.sh b/install/wallos-install.sh index 6b482dc27..967da3626 100644 --- a/install/wallos-install.sh +++ b/install/wallos-install.sh @@ -18,7 +18,7 @@ PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="imagick,bz2,sqlite3" setup_php fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball" msg_info "Installing Wallos (Patience)" -cd /opt/wallos +cd /opt/wallos || exit mv /opt/wallos/db/wallos.empty.db /opt/wallos/db/wallos.db chown -R www-data:www-data /opt/wallos chmod -R 755 /opt/wallos @@ -62,6 +62,7 @@ motd_ssh customize msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/wastebin-install.sh b/install/wastebin-install.sh index d31cfcb74..2eda6355d 100644 --- a/install/wastebin-install.sh +++ b/install/wastebin-install.sh @@ -14,14 +14,14 @@ network_check update_os msg_info "Installing dependencies" -$STD apt-get install -y zstd +$STD apt install -y zstd msg_ok "Installed dependencies" msg_info "Installing Wastebin" temp_file=$(mktemp) RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst" -o "$temp_file" -tar -xf $temp_file +tar -xf "$temp_file" mkdir -p /opt/wastebin mv wastebin* /opt/wastebin/ chmod +x /opt/wastebin/wastebin @@ -60,7 +60,8 @@ motd_ssh customize msg_info "Cleaning up" -rm -f $temp_file -$STD apt-get -y autoremove -$STD apt-get -y autoclean +rm -f "$temp_file" +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/watcharr-install.sh b/install/watcharr-install.sh index 521dfb3bb..6b123e98f 100644 --- a/install/watcharr-install.sh +++ b/install/watcharr-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y gcc +$STD apt install -y gcc msg_ok "Installed Dependencies" setup_go @@ -22,14 +22,14 @@ NODE_VERSION="22" setup_nodejs fetch_and_deploy_gh_release "watcharr" "sbondCo/Watcharr" "tarball" msg_info "Setup Watcharr" -cd /opt/watcharr +cd /opt/watcharr || exit $STD npm i $STD npm run build mv ./build ./server/ui -cd server +cd server || exit export CGO_ENABLED=1 GOOS=linux -go mod download -go build -o ./watcharr +$STD go mod download +$STD go build -o ./watcharr msg_ok "Setup Watcharr" msg_info "Creating Service" @@ -54,6 +54,7 @@ motd_ssh customize msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/watchyourlan-install.sh b/install/watchyourlan-install.sh index 3f61d58e7..6503180c1 100644 --- a/install/watchyourlan-install.sh +++ b/install/watchyourlan-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ +$STD apt install -y \ arp-scan \ ieee-data \ libwww-perl @@ -53,6 +53,7 @@ motd_ssh customize msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/wavelog-install.sh b/install/wavelog-install.sh index 1eedb2f52..58086dd5e 100644 --- a/install/wavelog-install.sh +++ b/install/wavelog-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.3" PHP_MODULE="mysql" PHP_APACHE="YES" PHP_MAX_EXECUTION_TIME="600" setup_php +PHP_VERSION="8.4" PHP_MODULE="mysql" PHP_APACHE="YES" PHP_MAX_EXECUTION_TIME="600" setup_php setup_mariadb fetch_and_deploy_gh_release "wavelog" "wavelog/wavelog" "tarball" @@ -63,6 +63,7 @@ motd_ssh customize msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/web-check-install.sh b/install/web-check-install.sh index 807ab31f2..93a0d116c 100644 --- a/install/web-check-install.sh +++ b/install/web-check-install.sh @@ -15,7 +15,7 @@ update_os msg_info "Installing Dependencies" export DEBIAN_FRONTEND=noninteractive -$STD apt-get -y install --no-install-recommends \ +$STD apt -y install --no-install-recommends \ git \ traceroute \ make \ @@ -35,18 +35,25 @@ $STD apt-get -y install --no-install-recommends \ x11-apps msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs msg_info "Setup Python3" -$STD apt-get install -y python3 +$STD apt install -y python3 rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED msg_ok "Setup Python3" msg_info "Installing Chromium" -curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /etc/apt/trusted.gpg.d/google-archive.gpg -echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >/etc/apt/sources.list.d/google.list -$STD apt-get update -$STD apt-get -y install \ +curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/google-chrome-keyring.gpg +cat </dev/null +Types: deb +URIs: http://dl.google.com/linux/chrome/deb/ +Suites: stable +Components: main +Architectures: amd64 +Signed-By: /usr/share/keyrings/google-chrome-keyring.gpg +EOF +$STD apt update +$STD apt -y install \ chromium \ libxss1 \ lsb-release @@ -61,9 +68,9 @@ msg_info "Installing Web-Check (Patience)" temp_file=$(mktemp) RELEASE="patch-1" curl -fsSL "https://github.com/CrazyWolf13/web-check/archive/refs/heads/${RELEASE}.tar.gz" -o "$temp_file" -tar xzf $temp_file +tar xzf "$temp_file" mv web-check-${RELEASE} /opt/web-check -cd /opt/web-check +cd /opt/web-check || exit cat <<'EOF' >/opt/web-check/.env CHROME_PATH=/usr/bin/chromium PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium @@ -87,7 +94,7 @@ REACT_APP_API_ENDPOINT='/api' ENABLE_ANALYTICS='false' EOF $STD yarn install --frozen-lockfile --network-timeout 100000 -echo "${RELEASE}" >/opt/${APPLICATION}_version.txt +echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt msg_ok "Installed Web-Check" msg_info "Building Web-Check" @@ -136,10 +143,10 @@ motd_ssh customize msg_info "Cleaning up" -rm -rf $temp_file +rm -rf "$temp_file" rm -rf /var/lib/apt/lists/* /app/node_modules/.cache -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean msg_ok "Cleaned" motd_ssh diff --git a/install/wger-install.sh b/install/wger-install.sh index 0134b0c3d..df6c5841c 100644 --- a/install/wger-install.sh +++ b/install/wger-install.sh @@ -14,18 +14,18 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - git \ - apache2 \ - libapache2-mod-wsgi-py3 +$STD apt install -y \ + git \ + apache2 \ + libapache2-mod-wsgi-py3 msg_ok "Installed Dependencies" msg_info "Installing Python" -$STD apt-get install -y python3-pip +$STD apt install -y python3-pip rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED msg_ok "Installed Python" -NODE_VERSION="22" NODE_MODULE="yarn@latest,sass" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn,sass" setup_nodejs msg_info "Setting up wger" $STD adduser wger --disabled-password --gecos "" @@ -36,12 +36,12 @@ chmod g+w /home/wger/db /home/wger/db/database.sqlite mkdir /home/wger/{static,media} chmod o+w /home/wger/media temp_dir=$(mktemp -d) -cd $temp_dir +cd "$temp_dir" || exit RELEASE=$(curl -fsSL https://api.github.com/repos/wger-project/wger/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o "$RELEASE.tar.gz" -tar xzf $RELEASE.tar.gz -mv wger-$RELEASE /home/wger/src -cd /home/wger/src +tar xzf "$RELEASE".tar.gz +mv wger-"$RELEASE" /home/wger/src +cd /home/wger/src || exit $STD pip install -r requirements_prod.txt $STD pip install -e . $STD wger create-settings --database-path /home/wger/db/database.sqlite @@ -105,9 +105,10 @@ motd_ssh customize msg_info "Cleaning up" -rm -rf $temp_dir -$STD apt-get -y autoremove -$STD apt-get -y autoclean +rm -rf "$temp_dir" +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" motd_ssh diff --git a/install/whisparr-install.sh b/install/whisparr-install.sh index 28ac14720..17ef57fe3 100644 --- a/install/whisparr-install.sh +++ b/install/whisparr-install.sh @@ -14,13 +14,13 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y sqlite3 +$STD apt install -y sqlite3 msg_ok "Installed Dependencies" msg_info "Installing Whisparr" mkdir -p /var/lib/whisparr/ chmod 775 /var/lib/whisparr/ -cd /var/lib/whisparr/ +cd /var/lib/whisparr/ || exit $STD curl -fsSL 'https://whisparr.servarr.com/v1/update/nightly/updatefile?os=linux&runtime=netcore&arch=x64' -o whisparr.tar.gz $STD tar -xvzf whisparr.tar.gz mv Whisparr /opt @@ -42,7 +42,6 @@ Restart=on-failure [Install] WantedBy=multi-user.target EOF -systemctl -q daemon-reload systemctl enable --now -q whisparr msg_ok "Created Service" @@ -51,6 +50,7 @@ customize msg_info "Cleaning up" rm -rf Whisparr.develop.*.tar.gz -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/wikijs-install.sh b/install/wikijs-install.sh index ebf61a0ad..7b8911c52 100644 --- a/install/wikijs-install.sh +++ b/install/wikijs-install.sh @@ -14,11 +14,11 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ +$STD apt install -y \ git msg_ok "Installed Dependencies" -NODE_VERSION="22" NODE_MODULE="yarn@latest,node-gyp" setup_nodejs +NODE_VERSION="22" NODE_MODULE="yarn,node-gyp" setup_nodejs PG_VERSION="17" setup_postgresql fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz" @@ -70,6 +70,7 @@ motd_ssh customize msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/wireguard-install.sh b/install/wireguard-install.sh index bee1e96e0..11e9a44fe 100644 --- a/install/wireguard-install.sh +++ b/install/wireguard-install.sh @@ -14,12 +14,12 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y git +$STD apt install -y git msg_ok "Installed Dependencies" msg_info "Installing WireGuard" -$STD apt-get install -y wireguard wireguard-tools net-tools iptables -DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confnew" install -y iptables-persistent &>/dev/null +$STD apt install -y wireguard wireguard-tools net-tools iptables +DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Options::="--force-confnew" install -y iptables-persistent &>/dev/null $STD netfilter-persistent reload msg_ok "Installed WireGuard" @@ -28,7 +28,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard msg_info "Installing WGDashboard" - cd /etc/wgdashboard/src + cd /etc/wgdashboard/src || exit chmod u+x wgd.sh $STD ./wgd.sh install echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf @@ -77,6 +77,7 @@ motd_ssh customize msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/wizarr-install.sh b/install/wizarr-install.sh index a638639aa..51508e7f7 100644 --- a/install/wizarr-install.sh +++ b/install/wizarr-install.sh @@ -14,24 +14,22 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y sqlite3 +$STD apt install -y sqlite3 msg_ok "Installed Dependencies" setup_uv NODE_VERSION="22" setup_nodejs fetch_and_deploy_gh_release "wizarr" "wizarrrr/wizarr" -msg_info "Configure ${APPLICATION}" -cd /opt/wizarr +msg_info "Configure Wizarr" +cd /opt/wizarr || exit $STD /usr/local/bin/uv sync --frozen $STD /usr/local/bin/uv run --frozen pybabel compile -d app/translations $STD npm --prefix app/static install $STD npm --prefix app/static run build:css mkdir -p ./.cache $STD /usr/local/bin/uv run --frozen flask db upgrade -msg_ok "Configure ${APPLICATION}" -msg_info "Creating env, start script and service" LOCAL_IP="$(hostname -I | awk '{print $1}')" cat </opt/wizarr/.env APP_URL=http://${LOCAL_IP} @@ -51,10 +49,12 @@ uv run --frozen gunicorn \ run:app EOF chmod u+x /opt/wizarr/start.sh +msg_ok "Configure Wizarr" +msg_info "Creating Service" cat </etc/systemd/system/wizarr.service [Unit] -Description=${APPLICATION} Service +Description=Wizarr Service After=network.target [Service] @@ -68,12 +68,13 @@ Restart=on-abnormal WantedBy=multi-user.target EOF systemctl enable -q --now wizarr -msg_ok "Created env, start script and service" +msg_ok "Created Service" motd_ssh customize msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" diff --git a/install/wordpress-install.sh b/install/wordpress-install.sh index add4bc7a9..25a51d731 100644 --- a/install/wordpress-install.sh +++ b/install/wordpress-install.sh @@ -32,11 +32,11 @@ $STD mariadb -u root -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'local msg_ok "Set up Database" msg_info "Installing Wordpress (Patience)" -cd /var/www/html +cd /var/www/html || exit curl -fsSL "https://wordpress.org/latest.zip" -o "latest.zip" $STD unzip latest.zip chown -R www-data:www-data wordpress/ -cd /var/www/html/wordpress +cd /var/www/html/wordpress || exit find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; mv wp-config-sample.php wp-config.php @@ -71,6 +71,7 @@ customize msg_info "Cleaning up" rm -rf /var/www/html/latest.zip -$STD apt-get autoremove -$STD apt-get autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned"