Skip to content

Commit 8b942b7

Browse files
committed
more general fix
1 parent eaacd58 commit 8b942b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/aiscatcher-install

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,13 @@ setup_systemd_service() {
272272
[Unit]
273273
Description=AIS-catcher Service
274274
After=network.target
275+
275276
[Service]
276-
ExecStart=/bin/bash -c '/usr/bin/AIS-catcher -G system on -o 0 -C ${CONFIG_FILE} \$(/bin/grep -v "^#" ${CMD_FILE} | /bin/grep -v "^[[:space:]]*$" | tr -d "\r" | /usr/bin/tr "\n" " ")'
277+
ExecStart=/bin/bash -c '/usr/bin/AIS-catcher -G system on -o 0 -C "${CONFIG_FILE}" $(/bin/grep -v "^#" "${CMD_FILE}" | /bin/grep -v "^[[:space:]]*$" | tr "[:space:]" " " | tr -s " ")'
277278
Restart=always
278279
RestartSec=10
279280
StartLimitBurst=0
281+
280282
[Install]
281283
WantedBy=multi-user.target
282284
EOF

0 commit comments

Comments
 (0)