Skip to content

Commit

Permalink
Make the same style
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Nikitin <[email protected]>
  • Loading branch information
Andrew Nikitin committed Mar 2, 2022
1 parent 4f9fa8e commit 25528ef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build-tools/postpurge
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

# Remove cheqd-noded systemd service
if test -f "/lib/systemd/system/cheqd-noded.service"; then
# shellcheck disable=SC1136
if [ -f "/lib/systemd/system/cheqd-noded.service" ]
then
# Stop cheqd-noded service
systemctl stop cheqd-noded.service

Expand All @@ -13,7 +15,8 @@ if test -f "/lib/systemd/system/cheqd-noded.service"; then
fi

# Remove rsyslog config for cheqd-noded
if test -f "/etc/rsyslog.d/cheqd-node.conf"; then
if [ -f "/etc/rsyslog.d/cheqd-node.conf" ]
then
# Remove syslog conf
rm /etc/rsyslog.d/cheqd-node.conf

Expand All @@ -25,7 +28,8 @@ if test -f "/etc/rsyslog.d/cheqd-node.conf"; then
fi

# Remove logrotate config for cheqd-noded
if test -f "/etc/logrotate.d/cheqd-node"; then
if [ -f "/etc/logrotate.d/cheqd-node" ]
then
# Remove syslog conf
rm /etc/logrotate.d/cheqd-node

Expand Down

0 comments on commit 25528ef

Please sign in to comment.