From 214096d2f8184f5cb13d293dbae913313183193a Mon Sep 17 00:00:00 2001 From: jd-apprentice Date: Sat, 11 Jan 2025 18:17:34 -0300 Subject: [PATCH] fix: wrong executble path --- ct/opengist.sh | 4 ++-- install/opengist-install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/opengist.sh b/ct/opengist.sh index fa34a251..6e44d2c9 100644 --- a/ct/opengist.sh +++ b/ct/opengist.sh @@ -28,7 +28,7 @@ function update_script() { header_info check_container_storage check_container_resources - if [[ ! -f /usr/local/bin/opengist ]]; then + if [[ ! -f /opt/opengist/opengist ]]; then msg_error "No ${APP} Installation Found!" exit fi @@ -39,7 +39,7 @@ function update_script() { tar -xf opengist.tar.gz mv opengist/opengist /opt/opengist/opengist mv opengist/config.yml /opt/opengist/config.yml - chmod +x /usr/local/bin/opengist + chmod +x /opt/opengist/opengist rm -rf opengist* apt-get update &>/dev/null apt-get -y upgrade &>/dev/null diff --git a/install/opengist-install.sh b/install/opengist-install.sh index a0212c82..cf579ca5 100644 --- a/install/opengist-install.sh +++ b/install/opengist-install.sh @@ -5,7 +5,7 @@ # License: MIT # https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors @@ -30,7 +30,7 @@ mv opengist*.tar.gz opengist.tar.gz tar -xf opengist.tar.gz mv opengist/opengist /opt/opengist/opengist mv opengist/config.yml /opt/opengist/config.yml -chmod +x /usr/local/bin/opengist +chmod +x /opt/opengist/opengist rm -rf opengist* cat </etc/systemd/system/opengist.service [Unit]