diff --git a/ct/ampache.sh b/ct/ampache.sh index 6f8ad78..b1cf047 100644 --- a/ct/ampache.sh +++ b/ct/ampache.sh @@ -2,7 +2,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: MickLesk (Canbiz) -# License: MIT | https://github.com/tteck/Proxmox/raw/main/LICENSE +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE APP="Ampache" var_disk="5" @@ -17,23 +17,23 @@ color catch_errors function update_script() { -header_info -if [[ ! -d /opt/ampache ]]; then - msg_error "No ${APP} Installation Found!"; - exit; -fi -msg_info "Updating ${APP} LXC" -cd /opt/bookstack -git config --global --add safe.directory /opt/bookstack >/dev/null 2>&1 -git pull origin release >/dev/null 2>&1 -composer install --no-interaction --no-dev >/dev/null 2>&1 -php artisan migrate --force >/dev/null 2>&1 -php artisan cache:clear -php artisan config:clear -php artisan view:clear -msg_ok "Updated Successfully" -exit -msg_error "There is currently no update path available." + header_info + if [[ ! -d /opt/ampache ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating ${APP} LXC" + cd /opt/bookstack + git config --global --add safe.directory /opt/bookstack >/dev/null 2>&1 + git pull origin release >/dev/null 2>&1 + composer install --no-interaction --no-dev >/dev/null 2>&1 + php artisan migrate --force >/dev/null 2>&1 + php artisan cache:clear + php artisan config:clear + php artisan view:clear + msg_ok "Updated Successfully" + exit + msg_error "There is currently no update path available." } start diff --git a/ct/babybuddy.sh b/ct/babybuddy.sh index 905adc7..f823f80 100644 --- a/ct/babybuddy.sh +++ b/ct/babybuddy.sh @@ -1,69 +1,24 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2024 tteck -# Author: tteck -# Co-Author: MickLesk (Canbiz) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (Canbiz) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -function header_info { -clear -cat <<"EOF" - ____ __ ____ __ __ - / __ )____ _/ /_ __ __ / __ )__ ______/ /___/ /_ __ - / __ / __ `/ __ \/ / / / / __ / / / / __ / __ / / / / - / /_/ / /_/ / /_/ / /_/ / / /_/ / /_/ / /_/ / /_/ / /_/ / -/_____/\__,_/_.___/\__, / /_____/\__,_/\__,_/\__,_/\__, / - /____/ /____/ -EOF -} -header_info -echo -e "Loading..." APP="BabyBuddy" var_disk="5" var_cpu="2" var_ram="2048" var_os="debian" var_version="12" + +header_info "$APP" variables color catch_errors -function default_settings() { - CT_TYPE="1" - PW="" - CT_ID=$NEXTID - HN=$NSAPP - DISK_SIZE="$var_disk" - CORE_COUNT="$var_cpu" - RAM_SIZE="$var_ram" - BRG="vmbr0" - NET="dhcp" - GATE="" - APT_CACHER="" - APT_CACHER_IP="" - DISABLEIP6="no" - MTU="" - SD="" - NS="" - MAC="" - VLAN="" - SSH="no" - VERB="no" - echo_default -} - function update_script() { - if [[ ! -d /opt/scrutiny ]]; then msg_error "No ${APP} Installation Found!"; exit; fi - RELEASE=$(curl -s https://api.github.com/repos/AnalogJ/scrutiny/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - - UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Scrutiny Management" --radiolist --cancel-button Exit-Script "Spacebar = Select" 15 70 4 \ - "1" "Update Scrutiny to $RELEASE" ON \ - "2" "Change Scrutiny Settings" OFF \ - 3>&1 1>&2 2>&3) - header_info -if [ "$UPD" == "2" ]; then - nano /opt/scrutiny/config/scrutiny.yaml + if [[ ! -d /opt/babybuddy ]]; then msg_error "No ${APP} Installation Found!"; exit; fi + RELEASE=$(curl -s https://api.github.com/repos/xxxxx/xxxxx/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') exit fi } diff --git a/ct/docspell.sh b/ct/docspell.sh index c9d4de2..30774e6 100644 --- a/ct/docspell.sh +++ b/ct/docspell.sh @@ -2,76 +2,38 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: MickLesk (Canbiz) -# License: MIT | https://github.com/tteck/Proxmox/raw/main/LICENSE +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -function header_info { -clear -cat <<"EOF" -______ _ _ -| _ \ | | | -| | | |___ ___ ___ _ __ ___| | | -| | | / _ \ / __/ __| '_ \ / _ \ | | -| |/ / (_) | (__\__ \ |_) | __/ | | -|___/ \___/ \___|___/ .__/ \___|_|_| - | | - |_| - -EOF -} -header_info -echo -e "Loading..." APP="Docspell" var_disk="5" var_cpu="4" var_ram="2048" var_os="debian" var_version="12" + +header_info "$APP" variables color catch_errors -function default_settings() { - CT_TYPE="1" - PW="" - CT_ID=$NEXTID - HN=$NSAPP - DISK_SIZE="$var_disk" - CORE_COUNT="$var_cpu" - RAM_SIZE="$var_ram" - BRG="vmbr0" - NET="dhcp" - GATE="" - APT_CACHER="" - APT_CACHER_IP="" - DISABLEIP6="no" - MTU="" - SD="" - NS="" - MAC="" - VLAN="" - SSH="no" - VERB="no" - echo_default -} - function update_script() { -header_info -if [[ ! -d /opt/docspell ]]; then - msg_error "No ${APP} Installation Found!"; - exit; -fi -msg_info "Updating ${APP} LXC" -cd /opt/bookstack -git config --global --add safe.directory /opt/bookstack >/dev/null 2>&1 -git pull origin release >/dev/null 2>&1 -composer install --no-interaction --no-dev >/dev/null 2>&1 -php artisan migrate --force >/dev/null 2>&1 -php artisan cache:clear -php artisan config:clear -php artisan view:clear -msg_ok "Updated Successfully" -exit -msg_error "There is currently no update path available." + header_info + if [[ ! -d /opt/docspell ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating ${APP} LXC" + cd /opt/bookstack + git config --global --add safe.directory /opt/bookstack >/dev/null 2>&1 + git pull origin release >/dev/null 2>&1 + composer install --no-interaction --no-dev >/dev/null 2>&1 + php artisan migrate --force >/dev/null 2>&1 + php artisan cache:clear + php artisan config:clear + php artisan view:clear + msg_ok "Updated Successfully" + exit + msg_error "There is currently no update path available." } start diff --git a/ct/ghostfolio.sh b/ct/ghostfolio.sh index 4a9a566..9777057 100644 --- a/ct/ghostfolio.sh +++ b/ct/ghostfolio.sh @@ -1,67 +1,32 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2024 tteck -# Author: tteck -# Co-Author: jcantosz -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (Canbiz) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -function header_info { -clear -cat <<"EOF" - ________ __ ____ ___ - / ____/ /_ ____ _____/ /_/ __/___ / (_)___ - / / __/ __ \/ __ \/ ___/ __/ /_/ __ \/ / / __ \ -/ /_/ / / / / /_/ (__ ) /_/ __/ /_/ / / / /_/ / -\____/_/ /_/\____/____/\__/_/ \____/_/_/\____/ - -EOF -} -header_info -echo -e "Loading..." APP="Ghostfolio" var_disk="6" var_cpu="2" var_ram="2048" var_os="debian" var_version="12" + +header_info "$APP" variables color catch_errors -# Install requires at least 2GiB of RAM and 6GiB of disk space, both requirements are lower to actually run the app -function default_settings() { - CT_TYPE="1" - PW="" - CT_ID=$NEXTID - HN=$NSAPP - DISK_SIZE="$var_disk" - CORE_COUNT="$var_cpu" - RAM_SIZE="$var_ram" - BRG="vmbr0" - NET="dhcp" - GATE="" - APT_CACHER="" - APT_CACHER_IP="" - DISABLEIP6="no" - MTU="" - SD="" - NS="" - MAC="" - VLAN="" - SSH="no" - VERB="no" - echo_default -} - function update_script() { -header_info -if [[ ! -d /opt/ghostfolio ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -msg_info "Updating OS" -apt-get update &>/dev/null -apt-get -y upgrade &>/dev/null -msg_ok "Updated Successfully" -exit + header_info + if [[ ! -d /opt/ghostfolio ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating OS" + apt-get update &>/dev/null + apt-get -y upgrade &>/dev/null + msg_ok "Updated Successfully" + exit } start diff --git a/ct/healthchecks.sh b/ct/healthchecks.sh index e42dd8c..39fe730 100644 --- a/ct/healthchecks.sh +++ b/ct/healthchecks.sh @@ -1,13 +1,11 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2025 tteck -# Authors: tteck (tteckster) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (Canbiz) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://frigate.video/ -# App Default Values APP="healthchecks" -var_tags="nvr" +var_tags="monitoring" var_cpu="4" var_ram="4096" var_disk="20" @@ -15,10 +13,7 @@ var_os="debian" var_version="12" var_unprivileged="0" -# App Output header_info "$APP" - -# Core variables color catch_errors @@ -27,11 +22,11 @@ function update_script() { header_info check_container_storage check_container_resources - if [[ ! -f /etc/systemd/system/frigate.service ]]; then + if [[ ! -f /etc/systemd/system/healthchecks.service ]]; then msg_error "No ${APP} Installation Found!" exit fi - msg_error "To update Frigate, create a new container and transfer your configuration." + msg_error "No Update." exit } diff --git a/ct/hoodik.sh b/ct/hoodik.sh index 974d685..7d8d85d 100644 --- a/ct/hoodik.sh +++ b/ct/hoodik.sh @@ -1,11 +1,8 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2024 tteck -# Author: tteck -# Co-Author: MickLesk (Canbiz) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE -# Source: https://github.com/matze/wastebin +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (Canbiz) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # App Default Values APP="Hoodik" @@ -35,33 +32,33 @@ function update_script() { fi RELEASE=$(curl -s https://api.github.com/repos/hudikhq/hoodik/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then - msg_info "Stopping Services" - systemctl stop hoodik - msg_ok "Services Stopped" + msg_info "Stopping Services" + systemctl stop hoodik + msg_ok "Services Stopped" - msg_info "Updating ${APP} to ${RELEASE}" - cd /opt - if [ -d hoodik_bak ]; then - rm -rf hoodik_bak - fi - mv hoodik hoodik_bak - wget -q "https://github.com/hudikhq/hoodik/archive/refs/tags/${RELEASE}.zip" - unzip -q ${RELEASE}.zip - mv hoodik-${RELEASE} /opt/hoodik - cd /opt/hoodik - cargo update -q - cargo build -q --release - msg_ok "Updated Hoodik" + msg_info "Updating ${APP} to ${RELEASE}" + cd /opt + if [ -d hoodik_bak ]; then + rm -rf hoodik_bak + fi + mv hoodik hoodik_bak + wget -q "https://github.com/hudikhq/hoodik/archive/refs/tags/${RELEASE}.zip" + unzip -q ${RELEASE}.zip + mv hoodik-${RELEASE} /opt/hoodik + cd /opt/hoodik + cargo update -q + cargo build -q --release + msg_ok "Updated Hoodik" - msg_info "Starting Services" - systemctl start hoodik - msg_ok "Started Services" + msg_info "Starting Services" + systemctl start hoodik + msg_ok "Started Services" - msg_info "Cleaning Up" - rm -R /opt/${RELEASE}.zip - rm -R /opt/hoodik_bak - msg_ok "Cleaned" - msg_ok "Updated Successfully" + msg_info "Cleaning Up" + rm -R /opt/${RELEASE}.zip + rm -R /opt/hoodik_bak + msg_ok "Cleaned" + msg_ok "Updated Successfully" else msg_ok "No update required. ${APP} is already at ${RELEASE}" fi diff --git a/ct/koel.sh b/ct/koel.sh index aafaa5b..1b14a47 100644 --- a/ct/koel.sh +++ b/ct/koel.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2024 communtiy-scripts ORG +# Copyright (c) 2021-2025 community-scripts ORG # Author: MickLesk (Canbiz) -# License: MIT -# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE ## App Default Values APP="Koel" @@ -19,7 +18,7 @@ var_verbose="yes" header_info "$APP" base_settings -# Core +# Core variables color catch_errors @@ -39,23 +38,23 @@ function update_script() { msg_ok "Stopped ${APP} Service" msg_info "Updating ${APP} to v${RELEASE}" - cd /opt - wget -q https://github.com/koel/koel/releases/download/${RELEASE}/koel-${RELEASE}.zip - unzip -q koel-${RELEASE}.zip - cd /opt/koel - composer update --no-interaction >/dev/null 2>&1 - composer install --no-interaction >/dev/null 2>&1 - php artisan migrate --force >/dev/null 2>&1 - php artisan cache:clear >/dev/null 2>&1 - php artisan config:clear >/dev/null 2>&1 - php artisan view:clear >/dev/null 2>&1 - php artisan koel:init --no-interaction >/dev/null 2>&1 + cd /opt + wget -q https://github.com/koel/koel/releases/download/${RELEASE}/koel-${RELEASE}.zip + unzip -q koel-${RELEASE}.zip + cd /opt/koel + composer update --no-interaction >/dev/null 2>&1 + composer install --no-interaction >/dev/null 2>&1 + php artisan migrate --force >/dev/null 2>&1 + php artisan cache:clear >/dev/null 2>&1 + php artisan config:clear >/dev/null 2>&1 + php artisan view:clear >/dev/null 2>&1 + php artisan koel:init --no-interaction >/dev/null 2>&1 msg_ok "Updated ${APP} to v${RELEASE}" msg_info "Starting ${APP} Service" systemctl start nginx - msg_ok "Started ${APP} Service" - + msg_ok "Started ${APP} Service" + msg_info "Cleaning up" rm -rf /opt/koel-${RELEASE}.zip msg_ok "Cleaned" @@ -73,4 +72,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}:6767${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6767${CL}" diff --git a/ct/mattermost.sh b/ct/mattermost.sh index 402bf57..d3f3c69 100644 --- a/ct/mattermost.sh +++ b/ct/mattermost.sh @@ -1,26 +1,9 @@ #!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2024 tteck -# Author: tteck -# Co-Author: MickLesk (Canbiz) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE -# Source: https://github.com/matze/wastebin +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (Canbiz) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE - -function header_info { -clear -cat <<"EOF" - __ ___ __ __ __ - / |/ /___ _/ /_/ /____ _________ ___ ____ _____/ /_ - / /|_/ / __ `/ __/ __/ _ \/ ___/ __ `__ \/ __ \/ ___/ __/ - / / / / /_/ / /_/ /_/ __/ / / / / / / / /_/ (__ ) /_ -/_/ /_/\__,_/\__/\__/\___/_/ /_/ /_/ /_/\____/____/\__/ - -EOF -} -header_info -echo -e "Loading..." APP="Mattermost" var_disk="10" var_cpu="2" @@ -31,53 +14,25 @@ variables color catch_errors -function default_settings() { - CT_TYPE="1" - PW="" - CT_ID=$NEXTID - HN=$NSAPP - DISK_SIZE="$var_disk" - CORE_COUNT="$var_cpu" - RAM_SIZE="$var_ram" - BRG="vmbr0" - NET="dhcp" - GATE="" - APT_CACHER="" - APT_CACHER_IP="" - DISABLEIP6="no" - MTU="" - SD="" - NS="" - MAC="" - VLAN="" - SSH="no" - VERB="no" - echo_default -} - function update_script() { header_info if [[ ! -d /opt/mattermost ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -RELEASE=$(curl -s https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') +RELEASE=$(curl -s https://api.github.com/repos/xxxx/xxxx/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then - msg_info "Stopping Wastebin" - systemctl stop wastebin - msg_ok "Wastebin Stopped" + msg_info "Stopping App" + systemctl stop xxxx + msg_ok "App Stopped" - msg_info "Updating Wastebin" - wget -q https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst - tar -xf wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst - cp -f wastebin /opt/wastebin/ - chmod +x /opt/wastebin/wastebin - echo "${RELEASE}" >/opt/${APP}_version.txt - msg_ok "Updated Wastebin" + msg_info "Updating App" + # + msg_ok "Updated App" - msg_info "Starting Wastebin" - systemctl start wastebin - msg_ok "Started Wastebin" + msg_info "Starting App" + systemctl start App + msg_ok "Started App" msg_info "Cleaning Up" - rm -rf wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst + #rm -rf msg_ok "Cleaned" msg_ok "Updated Successfully" else diff --git a/ct/maxun.sh b/ct/maxun.sh index fba89e3..04a5d5d 100644 --- a/ct/maxun.sh +++ b/ct/maxun.sh @@ -5,7 +5,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/getmaxun/maxun -# App Default Values + APP="Maxun" var_tags="scraper" var_disk="7" @@ -15,11 +15,8 @@ var_os="debian" var_version="12" var_unprivileged="1" -# App Output & Base Settings -header_info "$APP" -base_settings -# Core +header_info "$APP" variables color catch_errors