diff --git a/ct/headscale.sh b/ct/headscale.sh index dbacfd6fa..fa06431dc 100644 --- a/ct/headscale.sh +++ b/ct/headscale.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" diff --git a/ct/healthchecks.sh b/ct/healthchecks.sh index 30e67654d..7e6b714ca 100644 --- a/ct/healthchecks.sh +++ b/ct/healthchecks.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" 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" @@ -33,7 +33,7 @@ function update_script() { systemctl stop healthchecks msg_ok "Stopped Services" - setup_uv + PYTHON_VERSION="3.12" setup_uv fetch_and_deploy_gh_release "healthchecks" "healthchecks/healthchecks" msg_info "Updating healthchecks" @@ -45,7 +45,6 @@ function update_script() { $STD uv run -- python manage.py collectstatic --noinput $STD uv run -- python manage.py compress msg_ok "Updated healthchecks" - msg_info "Starting Services" systemctl start healthchecks systemctl restart caddy diff --git a/ct/hivemq.sh b/ct/hivemq.sh index 384d10e3d..a851f1ad3 100644 --- a/ct/hivemq.sh +++ b/ct/hivemq.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" @@ -20,15 +20,15 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /var ]]; 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 /var ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + msg_error "Currently we don't provide an update function for this ${APP}." + exit } start @@ -36,4 +36,4 @@ build_container description msg_ok "Completed Successfully!\n" -echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" \ No newline at end of file +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" diff --git a/ct/homarr.sh b/ct/homarr.sh index 6a19924c1..7aaec5188 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-3}" var_ram="${var_ram:-6144}" var_disk="${var_disk:-8}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" diff --git a/ct/homeassistant.sh b/ct/homeassistant.sh index 6201915b9..f4c7006aa 100644 --- a/ct/homeassistant.sh +++ b/ct/homeassistant.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" diff --git a/ct/homebox.sh b/ct/homebox.sh index f09276712..03287ac13 100644 --- a/ct/homebox.sh +++ b/ct/homebox.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" diff --git a/ct/homebridge.sh b/ct/homebridge.sh index 1a01cc4c0..1635248ab 100644 --- a/ct/homebridge.sh +++ b/ct/homebridge.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" @@ -20,18 +20,18 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -f /etc/apt/sources.list.d/homebridge.list ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_info "Updating ${APP} LXC" - $STD apt-get update - $STD apt-get install -y homebridge - msg_ok "Updated successfully!" + header_info + check_container_storage + check_container_resources + if [[ ! -f /etc/apt/sources.list.d/homebridge.list ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + msg_info "Updating ${APP} LXC" + $STD apt update + $STD apt install -y homebridge + msg_ok "Updated successfully!" + exit } start diff --git a/ct/hortusfox.sh b/ct/hortusfox.sh index 69a888a2e..926629b0a 100644 --- a/ct/hortusfox.sh +++ b/ct/hortusfox.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" 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" @@ -47,15 +47,12 @@ function update_script() { $STD php asatru plants:attributes $STD php asatru calendar:classes chown -R www-data:www-data /opt/hortusfox + rm -r /opt/hortusfox-backup msg_ok "Updated HortusFox" msg_info "Starting Service" systemctl start apache2 msg_ok "Started Service" - - msg_info "Cleaning up" - rm -r /opt/hortusfox-backup - msg_ok "Cleaned" msg_ok "Updated successfully!" fi exit diff --git a/ct/huntarr.sh b/ct/huntarr.sh index 06e9248a0..7ab5aae41 100644 --- a/ct/huntarr.sh +++ b/ct/huntarr.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" diff --git a/ct/hyperhdr.sh b/ct/hyperhdr.sh index 3c3af7ae5..cc001476d 100644 --- a/ct/hyperhdr.sh +++ b/ct/hyperhdr.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - $STD apt-get update - $STD apt-get -y upgrade + $STD apt update + $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" exit diff --git a/ct/hyperion.sh b/ct/hyperion.sh index 15c838c80..3f0bfee35 100644 --- a/ct/hyperion.sh +++ b/ct/hyperion.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" @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt-get update - $STD apt-get install -y hyperion + $STD apt update + $STD apt install -y hyperion msg_ok "Updated successfully!" exit } diff --git a/ct/immich.sh b/ct/immich.sh index 314a2b5cc..d414beb70 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -54,10 +54,10 @@ EOF if [[ -f /etc/apt/preferences.d/immich ]]; then rm /etc/apt/preferences.d/immich fi - $STD apt-get update + $STD apt update msg_ok "Added Debian Testing repo" msg_info "Installing libmimalloc3" - $STD apt-get install -t testing --no-install-recommends libmimalloc3 + $STD apt install -t testing --no-install-recommends libmimalloc3 msg_ok "Installed libmimalloc3" fi @@ -114,7 +114,7 @@ EOF msg_ok "Upgraded VectorChord to v${VCHORD_RELEASE}" fi if ! dpkg -l | grep -q ccache; then - $STD apt-get install -yqq ccache + $STD apt install -yqq ccache fi INSTALL_DIR="/opt/${APP}" @@ -213,12 +213,6 @@ EOF chown -R immich:immich "$INSTALL_DIR" msg_ok "Updated ${APP} to v${RELEASE}" - - msg_info "Cleaning up" - $STD apt-get -y autoremove - $STD apt-get -y autoclean - $STD apt clean -y - msg_ok "Cleaned" systemctl restart immich-ml immich-web fi exit @@ -272,7 +266,7 @@ function compile_libjxl() { function compile_libheif() { SOURCE=${SOURCE_DIR}/libheif if ! dpkg -l | grep -q libaom; then - $STD apt-get install -y libaom-dev + $STD apt install -y libaom-dev local update="required" fi : "${LIBHEIF_REVISION:=$(jq -cr '.revision' "$BASE_DIR"/server/sources/libheif.json)}" diff --git a/ct/influxdb.sh b/ct/influxdb.sh index 205b55926..ead8db84b 100644 --- a/ct/influxdb.sh +++ b/ct/influxdb.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" var_disk="${var_disk:-8}" 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 msg_info "Updating ${APP}" - $STD apt-get update - $STD apt-get -y upgrade + $STD apt update + $STD apt -y upgrade msg_ok "Updated successfully!" exit } diff --git a/ct/inspircd.sh b/ct/inspircd.sh index 92ca27caa..f92e36022 100644 --- a/ct/inspircd.sh +++ b/ct/inspircd.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" diff --git a/ct/inventree.sh b/ct/inventree.sh index 21e479e1e..81108e358 100644 --- a/ct/inventree.sh +++ b/ct/inventree.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" 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,8 +29,8 @@ function update_script() { exit fi msg_info "Updating $APP" - $STD apt-get update - $STD apt-get install --only-upgrade inventree -y + $STD apt update + $STD apt install --only-upgrade inventree -y msg_ok "Updated $APP" msg_ok "Updated successfully!" exit diff --git a/ct/itsm-ng.sh b/ct/itsm-ng.sh index ced75c81e..d7e6dfbc4 100644 --- a/ct/itsm-ng.sh +++ b/ct/itsm-ng.sh @@ -30,8 +30,8 @@ function update_script() { fi msg_info "Updating LXC" - $STD apt-get update - $STD apt-get -y upgrade + $STD apt update + $STD apt -y upgrade msg_ok "Updated Successfully!" exit } diff --git a/ct/jackett.sh b/ct/jackett.sh index 66fe47623..107f2f524 100644 --- a/ct/jackett.sh +++ b/ct/jackett.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" diff --git a/ct/jeedom.sh b/ct/jeedom.sh index 2b933cb83..b8cf2ca3a 100644 --- a/ct/jeedom.sh +++ b/ct/jeedom.sh @@ -30,8 +30,8 @@ function update_script() { fi msg_info "Updating OS" - $STD apt-get update - $STD apt-get -y upgrade + $STD apt update + $STD apt -y upgrade msg_ok "OS updated, you can now update Jeedom from the Web UI." exit } diff --git a/ct/karakeep.sh b/ct/karakeep.sh index e849dd123..fe81f9bc6 100644 --- a/ct/karakeep.sh +++ b/ct/karakeep.sh @@ -88,12 +88,6 @@ function update_script() { msg_info "Starting Services" systemctl start karakeep-browser karakeep-workers karakeep-web msg_ok "Started Services" - - msg_info "Cleaning up" - $STD apt autoremove -y - $STD apt autoclean -y - $STD apt clean -y - msg_ok "Cleaned" msg_ok "Updated Successfully!" fi exit diff --git a/ct/kimai.sh b/ct/kimai.sh index e0bdda572..567c5293c 100644 --- a/ct/kimai.sh +++ b/ct/kimai.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" var_disk="${var_disk:-7}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -70,11 +70,8 @@ function update_script() { chmod -R g+rw /opt/* chown -R www-data:www-data /opt/* chmod -R 777 /opt/* - msg_ok "Setup Permissions" - - msg_info "Cleaning Up" rm -rf "$BACKUP_DIR" - msg_ok "Cleaned" + msg_ok "Setup Permissions" msg_ok "Updated Successfully!" fi exit diff --git a/ct/kometa.sh b/ct/kometa.sh index 13aaf2465..5cd737feb 100644 --- a/ct/kometa.sh +++ b/ct/kometa.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-4096}" var_disk="${var_disk:-8}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" diff --git a/misc/build.func b/misc/build.func index dd7d87f4f..1f3ff1fab 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1078,6 +1078,7 @@ start() { ;; esac update_script + cleanup_lxc fi }