diff --git a/ct/actualbudget.sh b/ct/actualbudget.sh index 6efa56dcc..55b80b1f9 100644 --- a/ct/actualbudget.sh +++ b/ct/actualbudget.sh @@ -32,18 +32,18 @@ function update_script() { RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') if [[ -f /opt/actualbudget-data/config.json ]]; then if [[ ! -f /opt/actualbudget_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/actualbudget_version.txt)" ]]; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop actualbudget - msg_ok "${APP} Stopped" + msg_ok "Stopped Service" msg_info "Updating ${APP} to ${RELEASE}" $STD npm update -g @actual-app/sync-server echo "${RELEASE}" >/opt/actualbudget_version.txt msg_ok "Updated ${APP} to ${RELEASE}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start actualbudget - msg_ok "Restarted ${APP}" + msg_ok "Started Service" else msg_info "${APP} is already up to date" fi diff --git a/ct/alpine-redlib.sh b/ct/alpine-redlib.sh index 84263b8eb..fa78845e1 100644 --- a/ct/alpine-redlib.sh +++ b/ct/alpine-redlib.sh @@ -24,23 +24,23 @@ function update_script() { check_container_resources if [[ ! -d /opt/redlib ]]; then - msg_error "No ${APP} Installation Found!" - exit + msg_error "No ${APP} Installation Found!" + exit fi msg_info "Updating Alpine Packages" $STD apk -U upgrade msg_ok "Updated Alpine Packages" - msg_info "Stopping ${APP} Service" + msg_info "Stopping Service" $STD rc-service redlib stop - msg_ok "Stopped ${APP} Service" + msg_ok "Stopped Service" fetch_and_deploy_gh_release "redlib" "redlib-org/redlib" "prebuild" "latest" "/opt/redlib" "redlib-x86_64-unknown-linux-musl.tar.gz" - msg_info "Starting ${APP} Service" + msg_info "Starting Service" $STD rc-service redlib start - msg_ok "Started ${APP} Service" + msg_ok "Started Service" msg_ok "Update Successful" exit diff --git a/ct/apache-tika.sh b/ct/apache-tika.sh index 024100586..07b3fcf00 100755 --- a/ct/apache-tika.sh +++ b/ct/apache-tika.sh @@ -29,9 +29,9 @@ function update_script() { fi RELEASE="$(curl -fsSL https://dlcdn.apache.org/tika/ | grep -oP '(?<=href=")[0-9]+\.[0-9]+\.[0-9]+(?=/")' | sort -V | tail -n1)" if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop apache-tika - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating ${APP} to v${RELEASE}" cd /opt/apache-tika @@ -41,9 +41,9 @@ function update_script() { echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to v${RELEASE}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start apache-tika - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning Up" rm -rf /opt/apache-tika/tika-server-standard-prev-version.jar msg_ok "Cleanup Completed" @@ -61,4 +61,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}:9998${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9998${CL}" diff --git a/ct/autobrr.sh b/ct/autobrr.sh index e2e34dc7d..7bc8e628f 100644 --- a/ct/autobrr.sh +++ b/ct/autobrr.sh @@ -29,15 +29,15 @@ function update_script() { fi if check_for_gh_release "autobrr" "autobrr/autobrr"; then - msg_info "Stopping ${APP} LXC" + msg_info "Stopping Service" systemctl stop autobrr - msg_ok "Stopped ${APP} LXC" + msg_ok "Stopped Service" fetch_and_deploy_gh_release "autobrr" "autobrr/autobrr" "prebuild" "latest" "/usr/local/bin" "autobrr_*_linux_x86_64.tar.gz" - msg_info "Starting ${APP} LXC" + msg_info "Starting Service" systemctl start autobrr - msg_ok "Started ${APP} LXC" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/backrest.sh b/ct/backrest.sh index 7dc740175..abc71b0ca 100644 --- a/ct/backrest.sh +++ b/ct/backrest.sh @@ -29,9 +29,9 @@ function update_script() { fi RELEASE=$(curl -fsSL https://api.github.com/repos/garethgeorge/backrest/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 "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop backrest - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating ${APP} to ${RELEASE}" temp_file=$(mktemp) @@ -42,9 +42,9 @@ function update_script() { echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to ${RELEASE}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start backrest - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning up" rm -f "$temp_file" diff --git a/ct/calibre-web.sh b/ct/calibre-web.sh index 8a319618c..d45f03bb6 100644 --- a/ct/calibre-web.sh +++ b/ct/calibre-web.sh @@ -27,9 +27,9 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop cps - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating ${APP}" cd /opt/kepubify @@ -121,9 +121,9 @@ function update_script() { $STD pip install --upgrade calibreweb fi - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start cps - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" exit } @@ -135,4 +135,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}:8083${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8083${CL}" diff --git a/ct/cleanuparr.sh b/ct/cleanuparr.sh index 4bc0f82da..dbde789b0 100755 --- a/ct/cleanuparr.sh +++ b/ct/cleanuparr.sh @@ -28,15 +28,15 @@ function update_script() { exit fi if check_for_gh_release "cleanuparr" "Cleanuparr/Cleanuparr"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop cleanuparr - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" fetch_and_deploy_gh_release "Cleanuparr" "Cleanuparr/Cleanuparr" "prebuild" "latest" "/opt/cleanuparr" "*linux-amd64.zip" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start cleanuparr - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/commafeed.sh b/ct/commafeed.sh index 6c7809e24..79cab1b54 100644 --- a/ct/commafeed.sh +++ b/ct/commafeed.sh @@ -29,9 +29,9 @@ function update_script() { exit fi if check_for_gh_release "commafeed" "Athou/commafeed"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop commafeed - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" if ! [[ $(dpkg -s rsync 2>/dev/null) ]]; then msg_info "Installing Dependencies" @@ -54,9 +54,9 @@ function update_script() { msg_ok "Restored data" fi - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start commafeed - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/dashy.sh b/ct/dashy.sh index 39d2285e9..da6fac44c 100644 --- a/ct/dashy.sh +++ b/ct/dashy.sh @@ -28,9 +28,9 @@ function update_script() { exit fi if check_for_gh_release "dashy" "Lissy93/dashy"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop dashy - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Backing up conf.yml" cd ~ diff --git a/ct/docmost.sh b/ct/docmost.sh index 7506c47fd..d1d45462a 100644 --- a/ct/docmost.sh +++ b/ct/docmost.sh @@ -32,9 +32,9 @@ function update_script() { export NODE_OPTIONS="--max_old_space_size=4096" if check_for_gh_release "docmost" "docmost/docmost"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop docmost - msg_ok "${APP} Stopped" + msg_ok "Stopped Service" msg_info "Backing up data" cp /opt/docmost/.env /opt/ @@ -52,9 +52,9 @@ function update_script() { $STD pnpm build msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start docmost - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/documenso.sh b/ct/documenso.sh index 2d0b1bc5f..4742d6622 100644 --- a/ct/documenso.sh +++ b/ct/documenso.sh @@ -29,9 +29,9 @@ function update_script() { fi RELEASE=$(curl -fsSL https://api.github.com/repos/documenso/documenso/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 "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop documenso - msg_ok "${APP} Stopped" + msg_ok "Stopped Service" msg_info "Updating ${APP} to ${RELEASE}" cp /opt/documenso/.env /opt/ @@ -53,9 +53,9 @@ function update_script() { echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start documenso - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning Up" rm -rf /opt/v${RELEASE}.zip diff --git a/ct/emby.sh b/ct/emby.sh index bb3bd5c5b..b17a798ec 100644 --- a/ct/emby.sh +++ b/ct/emby.sh @@ -29,15 +29,15 @@ function update_script() { exit fi if check_for_gh_release "emby" "MediaBrowser/Emby.Releases"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop emby-server - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" fetch_and_deploy_gh_release "emby" "MediaBrowser/Emby.Releases" "binary" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start emby-server - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/esphome.sh b/ct/esphome.sh index a70ef566d..f9d991017 100644 --- a/ct/esphome.sh +++ b/ct/esphome.sh @@ -28,9 +28,9 @@ function update_script() { exit 1 fi - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop esphomeDashboard - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" VENV_PATH="/opt/esphome/.venv" ESPHOME_BIN="${VENV_PATH}/bin/esphome" @@ -78,9 +78,9 @@ EOF ln -s /opt/esphome/.venv/bin/esphome /usr/local/bin/esphome msg_ok "Linked esphome binary" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start esphomeDashboard - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" exit } diff --git a/ct/forgejo.sh b/ct/forgejo.sh index 7f7e3187e..1e28ac7df 100644 --- a/ct/forgejo.sh +++ b/ct/forgejo.sh @@ -27,13 +27,13 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop forgejo - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating ${APP}" RELEASE=$(curl -fsSL https://codeberg.org/api/v1/repos/forgejo/forgejo/releases/latest | grep -oP '"tag_name":\s*"\K[^"]+' | sed 's/^v//') -curl -fsSL "https://codeberg.org/forgejo/forgejo/releases/download/v${RELEASE}/forgejo-${RELEASE}-linux-amd64" -o "forgejo-$RELEASE-linux-amd64" + curl -fsSL "https://codeberg.org/forgejo/forgejo/releases/download/v${RELEASE}/forgejo-${RELEASE}-linux-amd64" -o "forgejo-$RELEASE-linux-amd64" rm -rf /opt/forgejo/* cp -r forgejo-$RELEASE-linux-amd64 /opt/forgejo/forgejo-$RELEASE-linux-amd64 chmod +x /opt/forgejo/forgejo-$RELEASE-linux-amd64 @@ -44,9 +44,9 @@ curl -fsSL "https://codeberg.org/forgejo/forgejo/releases/download/v${RELEASE}/f rm -rf forgejo-$RELEASE-linux-amd64 msg_ok "Cleaned" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start forgejo - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" exit } @@ -58,4 +58,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/gokapi.sh b/ct/gokapi.sh index 0c51cc019..63fd95632 100644 --- a/ct/gokapi.sh +++ b/ct/gokapi.sh @@ -28,15 +28,15 @@ function update_script() { exit fi if check_for_gh_release "gokapi" "Forceu/Gokapi"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop gokapi - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" fetch_and_deploy_gh_release "gokapi" "Forceu/Gokapi" "prebuild" "latest" "/opt/gokapi" "gokapi-linux_amd64.zip" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start gokapi - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/gotify.sh b/ct/gotify.sh index a16837934..97a8379a3 100644 --- a/ct/gotify.sh +++ b/ct/gotify.sh @@ -28,16 +28,16 @@ function update_script() { exit fi if check_for_gh_release "gotify" "gotify/server"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop gotify - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" fetch_and_deploy_gh_release "gotify" "gotify/server" "prebuild" "latest" "/opt/gotify" "gotify-linux-amd64.zip" chmod +x /opt/gotify/gotify-linux-amd64 - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start gotify - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/grist.sh b/ct/grist.sh index 5dab8abea..5c6ce8157 100644 --- a/ct/grist.sh +++ b/ct/grist.sh @@ -30,9 +30,9 @@ function update_script() { fi if check_for_gh_release "grist" "gristlabs/grist-core"; then - msg_info "Stopping ${APP} Service" + msg_info "Stopping Service" systemctl stop grist - msg_ok "Stopped ${APP} Service" + msg_ok "Stopped Service" msg_info "Creating backup" rm -rf /opt/grist_bak @@ -52,9 +52,9 @@ function update_script() { $STD yarn run install:python msg_ok "Updated ${APP}" - msg_info "Starting ${APP} Service" + msg_info "Starting Service" systemctl start grist - msg_ok "Started ${APP} Service" + msg_ok "Started Service" msg_ok "Updated Successfully" fi diff --git a/ct/headscale.sh b/ct/headscale.sh index 6aeb5d5ac..a58a9bff4 100644 --- a/ct/headscale.sh +++ b/ct/headscale.sh @@ -32,16 +32,16 @@ function update_script() { fi if check_for_gh_release "headscale" "juanfont/headscale"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop headscale - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" fetch_and_deploy_gh_release "headscale" "juanfont/headscale" "binary" fetch_and_deploy_gh_release "headscale-admin" "GoodiesHQ/headscale-admin" "prebuild" "latest" "/opt/headscale-admin" "admin.zip" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl enable -q --now headscale - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/heimdall-dashboard.sh b/ct/heimdall-dashboard.sh index ca8251fdb..4cbd8f1f1 100644 --- a/ct/heimdall-dashboard.sh +++ b/ct/heimdall-dashboard.sh @@ -29,10 +29,10 @@ function update_script() { fi RELEASE=$(curl -fsSL "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]') if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop heimdall sleep 1 - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Backing up Data" cp -R /opt/Heimdall/database database-backup cp -R /opt/Heimdall/public public-backup @@ -59,10 +59,10 @@ function update_script() { rm -rf {"${RELEASE}".tar.gz,Heimdall-"${VER}",public-backup,database-backup,Heimdall} sleep 1 msg_ok "Cleaned" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start heimdall.service sleep 2 - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" else msg_ok "No update required. ${APP} is already at ${RELEASE}." diff --git a/ct/homebox.sh b/ct/homebox.sh index b2276e5ec..2ef3597a3 100644 --- a/ct/homebox.sh +++ b/ct/homebox.sh @@ -34,9 +34,9 @@ function update_script() { fi if check_for_gh_release "homebox" "sysadminsmedia/homebox"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop homebox - msg_ok "${APP} Stopped" + msg_ok "Stopped Service" if [ -f /opt/homebox ] && [ -x /opt/homebox ]; then rm -f /opt/homebox @@ -46,9 +46,9 @@ function update_script() { [ -f /opt/.env ] && mv /opt/.env /opt/homebox/.env [ -d /opt/.data ] && mv /opt/.data /opt/homebox/.data - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start homebox - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/homer.sh b/ct/homer.sh index 44c380e40..8cc9df667 100644 --- a/ct/homer.sh +++ b/ct/homer.sh @@ -27,9 +27,9 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop homer - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Backing up assets directory" cd ~ @@ -53,9 +53,9 @@ function update_script() { rm -rf assets-backup /opt/homer/homer.zip msg_ok "Cleaned" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start homer - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" exit } diff --git a/ct/immich.sh b/ct/immich.sh index 1bf1e3d5c..d71e66a65 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -79,7 +79,7 @@ function update_script() { msg_info "Stopping Services" systemctl stop immich-web systemctl stop immich-ml - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" INSTALL_DIR="/opt/${APP}" UPLOAD_DIR="$(sed -n '/^IMMICH_MEDIA_LOCATION/s/[^=]*=//p' /opt/immich/.env)" SRC_DIR="${INSTALL_DIR}/source" diff --git a/ct/komga.sh b/ct/komga.sh index 9f98b2f15..a4d7dd2a0 100644 --- a/ct/komga.sh +++ b/ct/komga.sh @@ -28,17 +28,17 @@ function update_script() { exit fi if check_for_gh_release "komga" "gotson/komga"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop komga - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" rm -f /opt/komga/komga.jar USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "komga-org" "gotson/komga" "singlefile" "latest" "/opt/komga" "komga*.jar" mv /opt/komga/komga-*.jar /opt/komga/komga.jar - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start komga - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit diff --git a/ct/linkwarden.sh b/ct/linkwarden.sh index 21d77cd87..97276e586 100644 --- a/ct/linkwarden.sh +++ b/ct/linkwarden.sh @@ -28,9 +28,9 @@ function update_script() { fi if check_for_gh_release "linkwarden" "linkwarden/linkwarden"; then NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop linkwarden - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" RUST_CRATES="monolith" setup_rust @@ -54,9 +54,9 @@ function update_script() { [ -d /opt/data.bak ] && mv /opt/data.bak /opt/linkwarden/data msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start linkwarden - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning up" rm -rf ~/.cargo/registry ~/.cargo/git ~/.cargo/.package-cache ~/.rustup diff --git a/ct/listmonk.sh b/ct/listmonk.sh index 0a0e812f1..d03140735 100644 --- a/ct/listmonk.sh +++ b/ct/listmonk.sh @@ -28,9 +28,9 @@ function update_script() { exit fi if check_for_gh_release "listmonk" "knadh/listmonk"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop listmonk - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Backing up data" mv /opt/listmonk/ /opt/listmonk-backup @@ -44,9 +44,9 @@ function update_script() { $STD /opt/listmonk/listmonk --upgrade --yes --config /opt/listmonk/config.toml msg_ok "Configured listmonk" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start listmonk - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning up" rm -rf /opt/listmonk-backup/ diff --git a/ct/medusa.sh b/ct/medusa.sh index 6c8299a38..29b0bf1d3 100644 --- a/ct/medusa.sh +++ b/ct/medusa.sh @@ -27,9 +27,9 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop medusa - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating ${APP}" cd /opt/medusa @@ -40,9 +40,9 @@ function update_script() { fi msg_ok "Updated Successfully" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start medusa - msg_ok "Started ${APP}" + msg_ok "Started Service" exit } @@ -53,4 +53,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}:8081${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8081${CL}" diff --git a/ct/metube.sh b/ct/metube.sh index 5d3fafa0e..a01a5cc3c 100644 --- a/ct/metube.sh +++ b/ct/metube.sh @@ -41,9 +41,9 @@ function update_script() { fi if check_for_gh_release "metube" "alexta69/metube"; then - msg_info "Stopping ${APP} Service" + msg_info "Stopping Service" systemctl stop metube - msg_ok "Stopped ${APP} Service" + msg_ok "Stopped Service" msg_info "Backing up Old Installation" if [[ -d /opt/metube_bak ]]; then @@ -102,10 +102,10 @@ EOF $STD apt-get -y autoclean msg_ok "Cleaned Up" - msg_info "Starting ${APP} Service" + msg_info "Starting Service" systemctl start metube sleep 1 - msg_ok "Started ${APP} Service" + msg_ok "Started Service" msg_ok "Updated Successfully!" fi diff --git a/ct/minarca.sh b/ct/minarca.sh index b7a4032a8..45caca57d 100644 --- a/ct/minarca.sh +++ b/ct/minarca.sh @@ -29,18 +29,18 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop minarca-server - msg_ok "${APP} Stopped" + msg_ok "Stopped Service" msg_info "Updating ${APP} LXC" $STD apt-get update $STD apt-get upgrade -y msg_ok "Updated ${APP} LXC" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start minarca-server - msg_ok "Restarted ${APP}" + msg_ok "Started Service" exit } diff --git a/ct/minio.sh b/ct/minio.sh index 018fdb4d0..ed834828d 100644 --- a/ct/minio.sh +++ b/ct/minio.sh @@ -47,9 +47,9 @@ function update_script() { fi if [[ "${CURRENT_VERSION}" != "${RELEASE}" ]]; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop minio - msg_ok "${APP} Stopped" + msg_ok "Stopped Service" msg_info "Updating ${APP} to ${RELEASE}" mv /usr/local/bin/minio /usr/local/bin/minio_bak @@ -58,9 +58,9 @@ function update_script() { echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start minio - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning up" rm -f /usr/local/bin/minio_bak diff --git a/ct/netbox.sh b/ct/netbox.sh index e5dd28d8e..c8f4296eb 100644 --- a/ct/netbox.sh +++ b/ct/netbox.sh @@ -31,9 +31,9 @@ function update_script() { RELEASE=$(curl -fsSL https://api.github.com/repos/netbox-community/netbox/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 "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop netbox netbox-rq - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating $APP to v${RELEASE}" mv /opt/netbox/ /opt/netbox-backup @@ -60,9 +60,9 @@ function update_script() { echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start netbox netbox-rq - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning up" rm -r "/opt/v${RELEASE}.zip" diff --git a/ct/nextpvr.sh b/ct/nextpvr.sh index 0a7c88491..686431731 100644 --- a/ct/nextpvr.sh +++ b/ct/nextpvr.sh @@ -28,9 +28,9 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop nextpvr-server - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating LXC packages" $STD apt-get update @@ -43,9 +43,9 @@ function update_script() { $STD dpkg -i nextpvr-helper.deb msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start nextpvr-server - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning Up" rm -rf /opt/nextpvr-helper.deb diff --git a/ct/nodebb.sh b/ct/nodebb.sh index 8057535a9..e0a5b8025 100644 --- a/ct/nodebb.sh +++ b/ct/nodebb.sh @@ -31,9 +31,9 @@ function update_script() { exit fi if check_for_gh_release "nodebb" "NodeBB/NodeBB"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop nodebb - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating ${APP}" cd /opt/nodebb @@ -41,9 +41,9 @@ function update_script() { echo "${CHECK_UPDATE_RELEASE}" >~/.nodebb msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start nodebb - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully\n" fi exit diff --git a/ct/nxwitness.sh b/ct/nxwitness.sh index 4b27c46c5..32e7dfaa3 100644 --- a/ct/nxwitness.sh +++ b/ct/nxwitness.sh @@ -32,22 +32,22 @@ function update_script() { DETAIL_PAGE=$(curl -fsSL "$BASE_URL#note_$RELEASE") DOWNLOAD_URL=$(echo "$DETAIL_PAGE" | grep -oP "https://updates.networkoptix.com/default/$RELEASE/linux/nxwitness-server-[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+-linux_x64\.deb" | head -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 networkoptix-root-tool networkoptix-mediaserver - msg_ok "${APP} Stopped" + msg_ok "Stopped Service" msg_info "Updating ${APP} to ${RELEASE}" cd /tmp -curl -fsSL "$DOWNLOAD_URL" -o ""nxwitness-server-$RELEASE-linux_x64.deb"" + curl -fsSL "$DOWNLOAD_URL" -o ""nxwitness-server-$RELEASE-linux_x64.deb"" export DEBIAN_FRONTEND=noninteractive export DEBCONF_NOWARNINGS=yes $STD dpkg -i nxwitness-server-$RELEASE-linux_x64.deb echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start networkoptix-root-tool networkoptix-mediaserver - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning up" rm -f /tmp/nxwitness-server-$RELEASE-linux_x64.deb @@ -67,4 +67,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}:7001/${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:7001/${CL}" diff --git a/ct/odoo.sh b/ct/odoo.sh index 42504514d..a5470c825 100644 --- a/ct/odoo.sh +++ b/ct/odoo.sh @@ -45,7 +45,7 @@ function update_script() { if [[ "${LATEST_VERSION}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then msg_info "Stopping ${APP} service" systemctl stop odoo - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating ${APP} to ${LATEST_VERSION}" curl -fsSL https://nightly.odoo.com/${RELEASE}/nightly/deb/odoo_${RELEASE}.latest_all.deb -o /opt/odoo.deb @@ -55,7 +55,7 @@ function update_script() { msg_info "Starting ${APP} service" systemctl start odoo - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning Up" rm -f /opt/odoo.deb diff --git a/ct/pocketbase.sh b/ct/pocketbase.sh index ebe38d7e4..482da7243 100644 --- a/ct/pocketbase.sh +++ b/ct/pocketbase.sh @@ -28,18 +28,18 @@ function update_script() { exit fi if check_for_gh_release "pocketbase" "pocketbase/pocketbase"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop pocketbase - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Updating ${APP}" /opt/pocketbase/pocketbase update echo "${CHECK_UPDATE_RELEASE}" >~/.pocketbase msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start pocketbase - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Update Successful" fi exit diff --git a/ct/pocketid.sh b/ct/pocketid.sh index f8e05fdb1..bb0daf209 100755 --- a/ct/pocketid.sh +++ b/ct/pocketid.sh @@ -30,8 +30,8 @@ function update_script() { fi if check_for_gh_release "pocket-id" "pocket-id/pocket-id"; then - if [ "$(printf '%s\n%s' "$(cat ~/.pocket-id 2>/dev/null || echo 0.0.0)" "1.0.0" | sort -V | head -n1)" = "$(cat ~/.pocket-id 2>/dev/null || echo 0.0.0)" ] \ - && [ "$(cat ~/.pocket-id 2>/dev/null || echo 0.0.0)" != "1.0.0" ]; then + if [ "$(printf '%s\n%s' "$(cat ~/.pocket-id 2>/dev/null || echo 0.0.0)" "1.0.0" | sort -V | head -n1)" = "$(cat ~/.pocket-id 2>/dev/null || echo 0.0.0)" ] && + [ "$(cat ~/.pocket-id 2>/dev/null || echo 0.0.0)" != "1.0.0" ]; then msg_info "Migrating ${APP}" systemctl -q disable --now pocketid-backend pocketid-frontend caddy mv /etc/caddy/Caddyfile ~/Caddyfile.bak @@ -58,9 +58,9 @@ function update_script() { mv /opt/data /opt/pocket-id msg_ok "Migration complete. The reverse proxy port has been changed to 1411." else - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop pocketid - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" cp /opt/pocket-id/.env /opt/env fi diff --git a/ct/prometheus-pve-exporter.sh b/ct/prometheus-pve-exporter.sh index 1513b34fc..c0b63ef78 100644 --- a/ct/prometheus-pve-exporter.sh +++ b/ct/prometheus-pve-exporter.sh @@ -28,9 +28,9 @@ function update_script() { exit 1 fi - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop prometheus-pve-exporter - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" export PVE_VENV_PATH="/opt/prometheus-pve-exporter/.venv" export PVE_EXPORTER_BIN="${PVE_VENV_PATH}/bin/pve_exporter" @@ -77,9 +77,9 @@ EOF msg_ok "Updated systemd service" fi - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start prometheus-pve-exporter - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" exit 0 diff --git a/ct/rabbitmq.sh b/ct/rabbitmq.sh index 7f0196b9a..7cbb6422b 100644 --- a/ct/rabbitmq.sh +++ b/ct/rabbitmq.sh @@ -41,17 +41,17 @@ EOF $STD apt-get update fi - msg_info "Stopping ${APP} Service" + msg_info "Stopping Service" systemctl stop rabbitmq-server - msg_ok "Stopped ${APP} Service" + msg_ok "Stopped Service" msg_info "Updating..." $STD apt install --only-upgrade rabbitmq-server msg_ok "Update Successfully" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start rabbitmq-server - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" exit } diff --git a/ct/rwmarkable.sh b/ct/rwmarkable.sh index cf654c6d3..f3b6b55d1 100644 --- a/ct/rwmarkable.sh +++ b/ct/rwmarkable.sh @@ -30,9 +30,9 @@ function update_script() { fi if check_for_gh_release "rwMarkable" "fccview/rwMarkable"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop rwmarkable - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" msg_info "Backing up configuration & data" cd /opt/rwmarkable diff --git a/ct/silverbullet.sh b/ct/silverbullet.sh index c33b37cb2..2bfeb5b59 100644 --- a/ct/silverbullet.sh +++ b/ct/silverbullet.sh @@ -28,15 +28,15 @@ function update_script() { fi if check_for_gh_release "silverbullet" "silverbulletmd/silverbullet"; then - msg_info "Stopping ${APP}" + msg_info "Stopping Service" systemctl stop silverbullet - msg_ok "Stopped ${APP}" + msg_ok "Stopped Service" fetch_and_deploy_gh_release "silverbullet" "silverbulletmd/silverbullet" "prebuild" "latest" "/opt/silverbullet/bin" "silverbullet-server-linux-x86_64.zip" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start silverbullet - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Update Successful" fi exit diff --git a/ct/spoolman.sh b/ct/spoolman.sh index 71ca77777..44e9c534a 100644 --- a/ct/spoolman.sh +++ b/ct/spoolman.sh @@ -30,9 +30,9 @@ function update_script() { RELEASE=$(curl -fsSL https://github.com/Donkie/Spoolman/releases/latest | grep "title>Release" | cut -d " " -f 4) if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then - msg_info "Stopping ${APP} Service" + msg_info "Stopping Service" systemctl stop spoolman - msg_ok "Stopped ${APP} Service" + msg_ok "Stopped Service" msg_info "Updating ${APP} to ${RELEASE}" cd /opt @@ -46,9 +46,9 @@ function update_script() { echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to ${RELEASE}" - msg_info "Starting ${APP} Service" + msg_info "Starting Service" systemctl start spoolman - msg_ok "Started ${APP} Service" + msg_ok "Started Service" msg_info "Cleaning up" rm -rf /opt/spoolman.zip diff --git a/ct/tianji.sh b/ct/tianji.sh index a05a46ccc..485ba3a24 100644 --- a/ct/tianji.sh +++ b/ct/tianji.sh @@ -61,9 +61,9 @@ function update_script() { $STD uv pip install apprise cryptography --system msg_ok "Updated AppRise" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start tianji - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_info "Cleaning up" rm -rf /opt/tianji_bak diff --git a/ct/traefik.sh b/ct/traefik.sh index d897856d2..ac82301a1 100644 --- a/ct/traefik.sh +++ b/ct/traefik.sh @@ -38,7 +38,7 @@ function update_script() { msg_info "Starting Service" systemctl start traefik msg_ok "Started Service" - msg_ok "Updated Successfully!" + msg_ok "Updated Successfully" fi exit } diff --git a/ct/trilium.sh b/ct/trilium.sh index 4289ab29d..af47b82db 100644 --- a/ct/trilium.sh +++ b/ct/trilium.sh @@ -66,8 +66,9 @@ function update_script() { msg_info "Starting Service" systemctl start trilium + sleep 1 msg_ok "Started Service" - msg_ok "Updated Successfully!" + msg_ok "Updated Successfully" fi exit } diff --git a/ct/umami.sh b/ct/umami.sh index f90bdcc25..32fc01159 100644 --- a/ct/umami.sh +++ b/ct/umami.sh @@ -44,7 +44,7 @@ function update_script() { msg_info "Starting Service" systemctl start umami msg_ok "Started Service" - msg_ok "Updated Successfully!" + msg_ok "Updated Successfully" fi exit } diff --git a/ct/uptimekuma.sh b/ct/uptimekuma.sh index db3cbd19a..fa5fd0754 100644 --- a/ct/uptimekuma.sh +++ b/ct/uptimekuma.sh @@ -46,7 +46,7 @@ function update_script() { msg_info "Starting Service" systemctl start uptime-kuma msg_ok "Started Service" - msg_ok "Updated Successfully!" + msg_ok "Updated Successfully" fi exit } diff --git a/ct/zipline.sh b/ct/zipline.sh index 834c35565..64a449b42 100644 --- a/ct/zipline.sh +++ b/ct/zipline.sh @@ -49,9 +49,9 @@ function update_script() { $STD pnpm build msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" + msg_info "Starting Service" systemctl start zipline - msg_ok "Started ${APP}" + msg_ok "Started Service" msg_ok "Updated Successfully" fi exit