Skip to content

Commit

Permalink
Adding postinstall / postrm scripts to restart sshd.
Browse files Browse the repository at this point in the history
  • Loading branch information
nfultz committed Dec 15, 2023
1 parent 27ebe58 commit 5970210
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: sshd-gh-key-helper
Version: 1.1-1
Version: 1.2-1
Section: base
Priority: optional
Architecture: all
Expand Down
5 changes: 5 additions & 0 deletions pkg/DEBIAN/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
set -e

/usr/bin/systemctl restart sshd || echo SSHD needs to be manually restarted.

5 changes: 5 additions & 0 deletions pkg/DEBIAN/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
set -e

/usr/bin/systemctl restart sshd || echo SSHD needs to be manually restarted.

0 comments on commit 5970210

Please sign in to comment.