blob: 6e961757af9be8c14366191b56fda13c4838d5f7 (
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
|
post_install() {
# Reload systemd
systemctl daemon-reload
echo "Add this 2 lines in your /etc/nginx/nginx.conf: "
echo " \"load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;\""
echo " \"include /etc/nginx/sites-enabled/*;\""
echo
echo "Add nginx in systemd"
echo " systemctl enable nginx"
echo " systemctl start nginx"
echo
echo "Adding camalarm in systemd:"
echo " systemctl enable camalarm"
echo " systemctl start camalarm"
echo
echo "Adding this rule in iptables:"
echo " iptables -t filter -A INPUT -p tcp --dport 8090 -j ACCEPT"
true
}
post_upgrade() {
# Reload systemd
systemctl daemon-reload
true
}
pre_remove() {
pkgname=camalarm
# Remove symlink in systemd
systemctl disable $pkgname
# Reload systemctl
systemctl daemon-reload
true
}
|