Refactor storyteller.sh for clarity and updates

This commit is contained in:
CanbiZ (MickLesk)
2026-04-30 13:44:53 +02:00
committed by GitHub
parent 7ac7374c73
commit 2be3269814
+4 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG # Copyright (c) 2021-2026 community-scripts ORG
# Author: CanbiZ (MickLesk) # 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
# Source: https://gitlab.com/storyteller-platform/storyteller # Source: https://gitlab.com/storyteller-platform/storyteller
@@ -29,6 +29,7 @@ function update_script() {
exit exit
fi fi
if check_for_gl_release "storyteller" "storyteller-platform/storyteller"; then
msg_info "Stopping Service" msg_info "Stopping Service"
systemctl stop storyteller systemctl stop storyteller
msg_ok "Stopped Service" msg_ok "Stopped Service"
@@ -37,7 +38,7 @@ function update_script() {
cp /opt/storyteller/.env /opt/storyteller_env.bak cp /opt/storyteller/.env /opt/storyteller_env.bak
msg_ok "Backed up Data" msg_ok "Backed up Data"
CLEAN_INSTALL=1 fetch_and_deploy_gl_release "storyteller" "storyteller-platform/storyteller" "tarball" CLEAN_INSTALL=1 fetch_and_deploy_gl_release "storyteller" "storyteller-platform/storyteller" "tarball" "latest" "/opt/storyteller"
msg_info "Restoring Configuration" msg_info "Restoring Configuration"
mv /opt/storyteller_env.bak /opt/storyteller/.env mv /opt/storyteller_env.bak /opt/storyteller/.env
@@ -70,6 +71,7 @@ function update_script() {
systemctl start storyteller systemctl start storyteller
msg_ok "Started Service" msg_ok "Started Service"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
fi
exit exit
} }