summarylogtreecommitdiffstats
path: root/sshd_autoban.install
diff options
context:
space:
mode:
Diffstat (limited to 'sshd_autoban.install')
-rw-r--r--sshd_autoban.install32
1 files changed, 32 insertions, 0 deletions
diff --git a/sshd_autoban.install b/sshd_autoban.install
new file mode 100644
index 000000000000..cc2b97d8b485
--- /dev/null
+++ b/sshd_autoban.install
@@ -0,0 +1,32 @@
+post_install() {
+ echo
+ echo "Becareful, you must edit /etc/sshd_autoban/sshd_autoban.json"
+ echo
+
+ # Create directories
+
+ # mkdir -p "$pkgdir/var/log/sshd_autoban/"
+
+ # Fixing right
+
+ chmod 644 "$pkgdir/etc/sshd_autoban/sshd_autoban.json"
+ chmod 755 "$pkgdir/var/log/sshd_autoban"
+ chmod 755 "$pkgdir/var/log/sshd_autoban/errors.log"
+ chmod 755 "$pkgdir/usr/bin/sshd_autoban"
+
+ # Fixing membership
+
+ chown -R root: "/var/log/sshd_autoban"
+ chown root: "/etc/sshd_autoban/sshd_autoban.json"
+
+ true
+}
+
+post_upgrade() {
+ echo "Reload systemctl"
+ systemctl daemon-reload
+}
+
+post_remove() {
+ true
+}