Skip to content

Commit 2e362fa

Browse files
committed
fix: backport service file fix
See guysoft/OctoPi#861
1 parent ce5da09 commit 2e362fa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
set -x
2+
set -e
3+
4+
export LC_ALL=C
5+
6+
source /common.sh
7+
install_cleanup_trap
8+
9+
# if we already have the file updated, we don't need to do anything
10+
grep -q '=network.online.target' /etc/systemd/system/octoprint.service || exit 0
11+
12+
sed -i 's#=network\.online\.target$#=network-online.target#' /etc/systemd/system/octoprint.service

0 commit comments

Comments
 (0)