fix: wrong executble path

This commit is contained in:
jd-apprentice 2025-01-11 18:17:34 -03:00
parent c717ef22e7
commit 214096d2f8
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 <<EOF >/etc/systemd/system/opengist.service
[Unit]