File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ install() {
10
10
# Package upgrade
11
11
upgrade () {
12
12
if [ -x " /usr/lib/systemd/systemd-update-helper" ]; then
13
- /usr/lib/systemd/systemd-update-helper system-reload-restart mac-api.service || :
13
+ /usr/lib/systemd/systemd-update-helper mark-restart-system-units mac-api.service || :
14
+ /usr/lib/systemd/systemd-update-helper system-reload-restart || :
14
15
fi
15
16
}
16
17
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ RestartSec=15
15
15
16
16
ExecStart =/usr/bin/mac-api
17
17
18
+ # Make sure config file exists
19
+ ExecStartPre =+/bin/mkdir -p /etc/mac-api
20
+ ExecStartPre =+/bin/chown root:mac-api /etc/mac-api
18
21
# Make sure log directory exists
19
22
ExecStartPre =+/bin/mkdir -p /var/log/mac-api
20
23
ExecStartPre =+/bin/chown mac-api:mac-api /var/log/mac-api
You can’t perform that action at this time.
0 commit comments