Skip to content

Commit 2901261

Browse files
Fix FileFlows service handling by using systemctl --all with quoted glob
1 parent 69641d3 commit 2901261

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ct/fileflows.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function update_script() {
3434
update_available=$(curl -fsSL -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable)
3535
if [[ "${update_available}" == "true" ]]; then
3636
msg_info "Stopping Service"
37-
systemctl stop fileflows*
37+
systemctl --all stop 'fileflows*'
3838
msg_info "Stopped Service"
3939

4040
msg_info "Creating Backup"
@@ -46,7 +46,7 @@ function update_script() {
4646
fetch_and_deploy_from_url "https://fileflows.com/downloads/zip" "/opt/fileflows"
4747

4848
msg_info "Starting Service"
49-
systemctl start fileflows*
49+
systemctl --all start 'fileflows*'
5050
msg_ok "Started Service"
5151
msg_ok "Updated successfully!"
5252
else

0 commit comments

Comments
 (0)