Skip to content

Commit d303365

Browse files
fix indentation and newline at the end
1 parent 1591eb4 commit d303365

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

packager/templates/debian/generic/postinst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ action="$1"
55
if [ "$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

packager/templates/debian/generic/postrm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ then
66
else
77
echo "systemctl could not be found, skipping daemon reload."
88
exit 0
9-
fi
9+
fi

packager/templates/debian/generic/prerm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ then
1111
else
1212
echo "systemctl could not be found, skipping service disable & remove."
1313
exit 0
14-
fi
14+
fi

0 commit comments

Comments
 (0)