From 1ba9513a4e580ab9b3bc2aaa3216292e6a42d6fc Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 15 Jun 2025 17:40:00 +0200 Subject: [PATCH] installer: directly stop box code the idea (previously) was that the box code knew how to stop itself. this is why stop.sh of the _old_ code was invoked. we can just inline the code needed to stop the old version into installer.sh itself. --- scripts/installer.sh | 2 +- setup/stop.sh | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100755 setup/stop.sh diff --git a/scripts/installer.sh b/scripts/installer.sh index 924de0a2f..56ebc898b 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -190,7 +190,7 @@ done if [[ "${is_update}" == "yes" ]]; then log "stop box service for update" - ${box_src_dir}/setup/stop.sh + systemctl stop box fi # ensure we are not inside the source directory, which we will remove now diff --git a/setup/stop.sh b/setup/stop.sh deleted file mode 100755 index e68694023..000000000 --- a/setup/stop.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail - -echo "Stopping cloudron" - -systemctl stop box