blob: 6711dd38d42fcf91f67b4dd8d4b1c2f9936ea94d (
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
33
34
35
|
post_install() {
pkgname=pingormail
# Fixing membership
chown http: /var/log/$pkgname
chown -R http: /etc/$pkgname
# Reload systemctl
systemctl daemon-reload
echo "Adding pingormail in systemctl if you want always use it:"
echo " systemctl enable pingormail"
echo " systemctl start pingormail"
true
}
post_upgrade() {
# Reload systemctl
systemctl daemon-reload
true
}
pre_remove() {
pkgname=pingormail
# Remove symlink in systemd
systemctl disable "$pkgname"
# Stop server
systemctl stop "$pkgname"
# Reload systemctl
systemctl daemon-reload
true
}
|