blob: 64fd765927872c6625825fc66f1dfe1cc0faa2ae (
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
36
37
38
39
40
41
|
post_install() {
pkgname=reducemp4video
# Fixing membership
chown http: /var/log/$pkgname
chown -R http: /etc/$pkgname
# Reload systemctl
systemctl daemon-reload
echo "Adding reducemp4video in systemctl:"
echo " systemctl enable reducemp4video"
echo " systemctl start reducemp4video"
true
}
post_upgrade() {
chown http: /var/log/$pkgname
chown -R http: /etc/$pkgname
# Reload systemctl
systemctl daemon-reload
echo "You should restart reducemp4video:"
echo " systemctl restart reducemp4video"
true
}
pre_remove() {
pkgname=reducemp4video
# Remove symlink in systemd
systemctl disable $pkgname
# Stop server
systemctl stop $pkgname
# Reload systemctl
# systemctl daemon-reload
true
}
|