File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
packager/templates/debian/generic Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ action="$1"
55if [ " $action " = configure ]; then
66 old_version=" $2 "
77
8- if command -v systemctl 2>&1 > /dev/null
9- then
10- if [ -z " $old_version " ]; then
11- systemctl enable choria-server.service
12- else
13- systemctl try-restart choria-broker.service choria-server.service
14- fi
15- else
16- echo " systemctl could not be found, skipping service start."
17- exit 0
18- fi
19- fi
8+ if command -v systemctl 2>&1 > /dev/null
9+ then
10+ if [ -z " $old_version " ]; then
11+ systemctl enable choria-server.service
12+ else
13+ systemctl try-restart choria-broker.service choria-server.service
14+ fi
15+ else
16+ echo " systemctl could not be found, skipping service start."
17+ exit 0
18+ fi
19+ fi
Original file line number Diff line number Diff line change 66else
77 echo " systemctl could not be found, skipping daemon reload."
88 exit 0
9- fi
9+ fi
Original file line number Diff line number Diff line change 1111else
1212 echo " systemctl could not be found, skipping service disable & remove."
1313 exit 0
14- fi
14+ fi
You can’t perform that action at this time.
0 commit comments