diff --git a/ct/adguard.sh b/ct/adguard.sh index 1e06dff0..fe15b859 100644 --- a/ct/adguard.sh +++ b/ct/adguard.sh @@ -54,6 +54,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /opt/AdGuardHome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Stopping AdguardHome" systemctl stop AdGuardHome msg_ok "Stopped AdguardHome" diff --git a/ct/audiobookshelf.sh b/ct/audiobookshelf.sh index 233069e3..b1411451 100644 --- a/ct/audiobookshelf.sh +++ b/ct/audiobookshelf.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/autobrr.sh b/ct/autobrr.sh index 968c89f0..3ccb663b 100644 --- a/ct/autobrr.sh +++ b/ct/autobrr.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -f /root/.config/autobrr/config.toml ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Stopping ${APP} LXC" systemctl stop autobrr.service msg_ok "Stopped ${APP} LXC" diff --git a/ct/blocky.sh b/ct/blocky.sh index 08d95da4..f0901ab2 100644 --- a/ct/blocky.sh +++ b/ct/blocky.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/casaos.sh b/ct/casaos.sh index 415f5ab4..58e82a98 100644 --- a/ct/casaos.sh +++ b/ct/casaos.sh @@ -54,6 +54,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP} LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/changedetection.sh b/ct/changedetection.sh index 7d6cfb0a..7be7d4d8 100644 --- a/ct/changedetection.sh +++ b/ct/changedetection.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -f /etc/systemd/system/changedetection.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP} LXC" pip3 install changedetection.io --upgrade &>/dev/null msg_ok "Updated ${APP} LXC" diff --git a/ct/cronicle.sh b/ct/cronicle.sh index d7477d49..19764c75 100644 --- a/ct/cronicle.sh +++ b/ct/cronicle.sh @@ -52,17 +52,13 @@ function default_settings() { } function update_script() { +if [[ ! -d /opt/cronicle ]]; then msg_error "No ${APP} Installation Found!"; exit; fi UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 2 \ "1" "Update ${APP}" ON \ "2" "Install ${APP} Worker" OFF \ 3>&1 1>&2 2>&3) header_info -if [ "$UPD" == "1" ]; then - if [[ ! -d /opt/cronicle ]]; then - msg_error "No ${APP} Installation Found!"; - exit - fi msg_info "Updating ${APP}" /opt/cronicle/bin/control.sh upgrade &>/dev/null msg_ok "Updated ${APP}" diff --git a/ct/daemonsync.sh b/ct/daemonsync.sh index 091e1bad..d675aa74 100644 --- a/ct/daemonsync.sh +++ b/ct/daemonsync.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/dashy.sh b/ct/dashy.sh index 87312e05..d25b1461 100644 --- a/ct/dashy.sh +++ b/ct/dashy.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /dashy/public/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Stopping ${APP}" systemctl stop dashy msg_ok "Stopped ${APP}" diff --git a/ct/debian.sh b/ct/debian.sh index 861cdf5e..bbdc5b03 100644 --- a/ct/debian.sh +++ b/ct/debian.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/deconz.sh b/ct/deconz.sh index 8f96f6cf..1911ac15 100644 --- a/ct/deconz.sh +++ b/ct/deconz.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -f /etc/apt/sources.list.d/deconz.list ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/deluge.sh b/ct/deluge.sh index 60c5c7e7..bc83e598 100644 --- a/ct/deluge.sh +++ b/ct/deluge.sh @@ -54,6 +54,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -f /etc/systemd/system/deluged.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null pip3 install deluge[all] --upgrade diff --git a/ct/devuan.sh b/ct/devuan.sh index 802fc921..e587e3d7 100644 --- a/ct/devuan.sh +++ b/ct/devuan.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/docker.sh b/ct/docker.sh index e9bba280..24aadb5f 100644 --- a/ct/docker.sh +++ b/ct/docker.sh @@ -54,6 +54,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP} LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/emby.sh b/ct/emby.sh index ba3e3575..ff78f49d 100644 --- a/ct/emby.sh +++ b/ct/emby.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /opt/emby-server ]]; then msg_error "No ${APP} Installation Found!"; exit; fi LATEST=$(curl -sL https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | grep '"tag_name":' | cut -d'"' -f4) msg_info "Stopping ${APP}" systemctl stop emby-server diff --git a/ct/emqx.sh b/ct/emqx.sh index c3ce1c62..69808e96 100644 --- a/ct/emqx.sh +++ b/ct/emqx.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/esphome.sh b/ct/esphome.sh index aeca41ed..f2da9a4a 100644 --- a/ct/esphome.sh +++ b/ct/esphome.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -f /usr/local/bin/esphome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Stopping ESPHome" systemctl stop esphomeDashboard msg_ok "Stopped ESPHome" diff --git a/ct/go2rtc.sh b/ct/go2rtc.sh index 4c62a537..606b6e0d 100644 --- a/ct/go2rtc.sh +++ b/ct/go2rtc.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/grafana.sh b/ct/grafana.sh index 50230988..862e8faa 100644 --- a/ct/grafana.sh +++ b/ct/grafana.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP} LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/ct/grocy.sh b/ct/grocy.sh index 43ca9c5a..59deb56a 100644 --- a/ct/grocy.sh +++ b/ct/grocy.sh @@ -53,6 +53,7 @@ function default_settings() { function update_script() { header_info +if [[ ! -f /etc/apache2/sites-available/grocy.conf ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP}" bash /var/www/html/update.sh msg_ok "Updated ${APP}" diff --git a/misc/alpine.func b/misc/alpine.func index 547228af..31f1a2a2 100644 --- a/misc/alpine.func +++ b/misc/alpine.func @@ -386,7 +386,7 @@ fi msg_info "Starting LXC Container" pct start $CTID msg_ok "Started LXC Container" - lxc-attach -n $CTID -- ash -c "$(wget -qO - https://raw.githubusercontent.com/tteck/Proxmox/next/install/$var_install.sh)" || exit + lxc-attach -n $CTID -- bash -c "$(wget -qO - https://raw.githubusercontent.com/tteck/Proxmox/next/install/$var_install.sh)" || exit } diff --git a/misc/ubuntu.func b/misc/ubuntu.func index 9c7debf0..fe851d0c 100644 --- a/misc/ubuntu.func +++ b/misc/ubuntu.func @@ -382,7 +382,7 @@ build_container() { bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit if [ "$CT_TYPE" == "0" ]; then - if [[ "$APP" != "emby" && "$APP" != "jellyfin" && "$APP" != "plex" ]]; then + if [[ "$APP" != "Emby" && "$APP" != "Jellyfin" && "$APP" != "Plex" ]]; then LXC_CONFIG=/etc/pve/lxc/${CTID}.conf cat <>$LXC_CONFIG lxc.cgroup2.devices.allow: a @@ -399,7 +399,7 @@ EOF fi if [ "$CT_TYPE" == "0" ]; then - if [[ "$APP" == "emby" || "$APP" == "jellyfin" || "$APP" == "plex" ]]; then + if [[ "$APP" == "Emby" || "$APP" == "Jellyfin" || "$APP" == "Plex" ]]; then LXC_CONFIG=/etc/pve/lxc/${CTID}.conf cat <>$LXC_CONFIG lxc.cgroup2.devices.allow: c 226:0 rwm