-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from cheqd/debian-package-fix
Debian package fix
- Loading branch information
Showing
5 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,3 @@ mkdir -p $TMP_DIR | |
cp $PATH_TO_BIN $TMP_DIR | ||
|
||
tar -czf $PATH_TAR $TMP_DIR | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ TMP_DIR=usr/bin | |
OUTPUT_DIR=output | ||
TAR_ARCHIVE=${PKG_NAME}_${VERSION}.tar.gz | ||
PATH_TAR=$OUTPUT_DIR/$TAR_ARCHIVE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,38 @@ | ||
#!/bin/bash | ||
|
||
# Get rid of systemd service | ||
# Remove cheqd-noded systemd service | ||
if test -f "/lib/systemd/system/cheqd-noded.service"; then | ||
# Stop systemd service firstly | ||
systemctl stop cheqd-noded | ||
# Stop cheqd-noded service | ||
systemctl stop cheqd-noded.service | ||
|
||
# Disable cheqd-noded service | ||
systemctl disable cheqd-noded.service | ||
|
||
# Remove link in systemd service libraries folder | ||
rm /lib/systemd/system/cheqd-noded.service | ||
# Reload systemd daemons | ||
systemctl daemon-reload | ||
fi | ||
|
||
# Remove rsyslog config for cheqd-noded | ||
if test -f "/etc/rsyslog.d/cheqd-node.conf"; then | ||
# Remove syslog conf | ||
rm /etc/rsyslog.d/cheqd-node.conf | ||
|
||
# Remove symlink to log location | ||
rm /var/log/cheqd-node | ||
|
||
# Restart syslog | ||
systemctl restart rsyslog | ||
fi | ||
|
||
# Remove logrotate config for cheqd-noded | ||
if test -f "etc/logrotate.d/cheqd-node"; then | ||
# Remove syslog conf | ||
rm /etc/rsyslog.d/cheqd-node.conf | ||
|
||
# Restart logrotate | ||
systemctl restart logrotate.service | ||
systemctl restart logrotate.timer | ||
fi | ||
|
||
# Reload systemd daemons | ||
systemctl daemon-reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters