diff --git a/ct/archivebox.sh b/ct/archivebox.sh index 8344898f..81063ba8 100644 --- a/ct/archivebox.sh +++ b/ct/archivebox.sh @@ -5,6 +5,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://archivebox.io/ +# App Default Values APP="ArchiveBox" TAGS="archive;bookmark" var_cpu="2" diff --git a/ct/aria2.sh b/ct/aria2.sh index 7e0e0e2c..1bb5b5d9 100644 --- a/ct/aria2.sh +++ b/ct/aria2.sh @@ -5,6 +5,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://aria2.github.io/ +# App Default Values APP="Aria2" TAGS="download-utility" var_cpu="2" diff --git a/ct/audiobookshelf.sh b/ct/audiobookshelf.sh index 299d49c6..9c63c1f7 100644 --- a/ct/audiobookshelf.sh +++ b/ct/audiobookshelf.sh @@ -5,6 +5,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.audiobookshelf.org/ +# App Default Values APP="audiobookshelf" TAGS="podcast;audiobook" var_cpu="2" diff --git a/ct/autobrr.sh b/ct/autobrr.sh index 196c36c5..b3bef31b 100644 --- a/ct/autobrr.sh +++ b/ct/autobrr.sh @@ -5,6 +5,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://autobrr.com/ +# App Default Values APP="Autobrr" TAGS="*arr;" var_cpu="2" diff --git a/ct/commafeed.sh b/ct/commafeed.sh index 363c4843..b3f72d87 100644 --- a/ct/commafeed.sh +++ b/ct/commafeed.sh @@ -3,13 +3,14 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://www.commafeed.com/#/welcome - -# +# App Default Values APP="CommaFeed" -var_disk="4" +TAGS="rss-reader" var_cpu="2" var_ram="2048" +var_disk="4" var_os="debian" var_version="12" var_unprivileged="1" @@ -18,38 +19,41 @@ var_unprivileged="1" header_info "$APP" base_settings -# Core +# Core variables color catch_errors function update_script() { -header_info -check_container_storage -check_container_resources -if [[ ! -d /opt/commafeed ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -RELEASE=$(curl -sL https://api.github.com/repos/Athou/commafeed/releases/latest | grep '"tag_name":' | cut -d'"' -f4) -if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then - msg_info "Stopping ${APP}" - systemctl stop commafeed - msg_ok "Stopped ${APP}" + header_info + check_container_storage + check_container_resources + if [[ ! -d /opt/commafeed ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + RELEASE=$(curl -sL https://api.github.com/repos/Athou/commafeed/releases/latest | grep '"tag_name":' | cut -d'"' -f4) + if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then + msg_info "Stopping ${APP}" + systemctl stop commafeed + msg_ok "Stopped ${APP}" - msg_info "Updating ${APP} to ${RELEASE}" - wget -q https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip - unzip -q commafeed-${RELEASE}-h2-jvm.zip - rsync -a --exclude 'data/' commafeed-${RELEASE}-h2/ /opt/commafeed/ - rm -rf commafeed-${RELEASE}-h2 commafeed-${RELEASE}-h2-jvm.zip - echo "${RELEASE}" >/opt/${APP}_version.txt - msg_ok "Updated ${APP} to ${RELEASE}" + msg_info "Updating ${APP} to ${RELEASE}" + wget -q https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip + unzip -q commafeed-${RELEASE}-h2-jvm.zip + rsync -a --exclude 'data/' commafeed-${RELEASE}-h2/ /opt/commafeed/ + rm -rf commafeed-${RELEASE}-h2 commafeed-${RELEASE}-h2-jvm.zip + echo "${RELEASE}" >/opt/${APP}_version.txt + msg_ok "Updated ${APP} to ${RELEASE}" - msg_info "Starting ${APP}" - systemctl start commafeed - msg_ok "Started ${APP}" - msg_ok "Updated Successfully" -else - msg_ok "No update required. ${APP} is already at ${RELEASE}" -fi -exit + msg_info "Starting ${APP}" + systemctl start commafeed + msg_ok "Started ${APP}" + msg_ok "Updated Successfully" + else + msg_ok "No update required. ${APP} is already at ${RELEASE}" + fi + exit } start @@ -59,4 +63,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}:8082${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8082${CL}" diff --git a/ct/debian.sh b/ct/debian.sh index 2907ade5..a914f673 100644 --- a/ct/debian.sh +++ b/ct/debian.sh @@ -5,6 +5,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.debian.org/ +# App Default Values APP="Debian" TAGS="os" var_cpu="1" diff --git a/ct/deluge.sh b/ct/deluge.sh index 67e6602a..e8971ed3 100644 --- a/ct/deluge.sh +++ b/ct/deluge.sh @@ -5,6 +5,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.deluge-torrent.org/ +# App Default Values APP="Deluge" TAGS="torrent" var_cpu="2" diff --git a/ct/jellyfin.sh b/ct/jellyfin.sh index e31c2e04..e39fe8f0 100644 --- a/ct/jellyfin.sh +++ b/ct/jellyfin.sh @@ -5,6 +5,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://jellyfin.org/ +# App Default Values APP="Jellyfin" TAGS="media" var_cpu="2" diff --git a/ct/lazylibrarian.sh b/ct/lazylibrarian.sh index 70c62078..21c4a88b 100644 --- a/ct/lazylibrarian.sh +++ b/ct/lazylibrarian.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2024 tteck -# Author: tteck -# Co-Author: MountyMapleSyrup (MountyMapleSyrup) +# Author: tteck | Co-Author: MountyMapleSyrup (MountyMapleSyrup) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://gitlab.com/LazyLibrarian/LazyLibrarian diff --git a/ct/nzbget.sh b/ct/nzbget.sh index 3d0182a6..7d313785 100644 --- a/ct/nzbget.sh +++ b/ct/nzbget.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2024 tteck -# Author: tteck -# Co-Author: havardthom +# Author: tteck | Co-Author: havardthom # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://nzbget.com/ diff --git a/ct/ollama.sh b/ct/ollama.sh index 13f8ed30..1082e046 100644 --- a/ct/ollama.sh +++ b/ct/ollama.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2024 tteck -# Author: tteck -# Co-Author: havardthom +# Author: tteck | Co-Author: havardthom # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://ollama.com/ diff --git a/ct/pbs.sh b/ct/pbs.sh index 5537ffc6..d7155865 100644 --- a/ct/pbs.sh +++ b/ct/pbs.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash - source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) diff --git a/ct/podman-homeassistant.sh b/ct/podman-homeassistant.sh index d372d301..fee6ae44 100644 --- a/ct/podman-homeassistant.sh +++ b/ct/podman-homeassistant.sh @@ -4,29 +4,18 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -function header_info { -clear -cat <<"EOF" - ____ __ - / __ \____ ____/ /___ ___ ____ _____ - / /_/ / __ \/ __ / __ __ \/ __ / __ \ - / ____/ /_/ / /_/ / / / / / / /_/ / / / / - __ __ /_/ \____/\__,_/_/ /_/ /_/\__,_/_/ /_/__ __ - / / / /___ ____ ___ ___ / | __________(_)____/ /_____ _____ / /_ - / /_/ / __ \/ __ __ \/ _ \ / /| | / ___/ ___/ / ___/ __/ __ / __ \/ __/ - / __ / /_/ / / / / / / __/ / ___ |(__ |__ ) (__ ) /_/ /_/ / / / / /_ -/_/ /_/\____/_/ /_/ /_/\___/ /_/ |_/____/____/_/____/\__/\__,_/_/ /_/\__/ - -EOF -} -header_info +# App Default Values APP="Podman-Home Assistant" +TAGS="podman;smarthome" var_cpu="2" var_ram="2048" var_disk="16" var_os="debian" var_version="12" var_unprivileged="1" + +# App Output & Base Settings +header_info "$APP" base_settings # Core diff --git a/ct/smokeping.sh b/ct/smokeping.sh index f706aae6..44544ea8 100644 --- a/ct/smokeping.sh +++ b/ct/smokeping.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash - source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) diff --git a/ct/tandoor.sh b/ct/tandoor.sh index 5dea10f2..41f97742 100644 --- a/ct/tandoor.sh +++ b/ct/tandoor.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2024 tteck -# Author: tteck -# Co-Author: MickLesk (Canbiz) +# Author: MickLesk (Canbiz) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://tandoor.dev/ diff --git a/ct/wallos.sh b/ct/wallos.sh index b67354ab..34fec89c 100644 --- a/ct/wallos.sh +++ b/ct/wallos.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2024 tteck -# Author: tteck -# Co-Author: MickLesk (Canbiz) +# Author: MickLesk (Canbiz) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://wallosapp.com/