blob: cc2b97d8b485673833c9eca77fc03838c40502ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
}
|