blob: a5e36545ce57dbe3fba5e3d62486b2c94c0a491f (
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
42
43
44
45
|
post_install() {
# Reload systemctl
systemctl daemon-reload
echo "- You must create /etc/wallxplanet/wallxplanet.conf. Example: /etc/wallxplanet/wallxplanet_sample.conf"
echo "- You should edit /usr/bin/wallxplanet.sh and /usr/bin/downloadcloudsmap.sh to change output location of files"
echo "- Adding in systemctl:"
for service in "downloadcloudsmap.timer" "wallxplanet"
do
echo " systemctl enable ${service}"
echo " systemctl start ${service}"
done
true
}
post_upgrade() {
# Reload systemctl
systemctl daemon-reload
echo "You should restart downloadcloudsmap & wallxplanet"
echo "- You should edit /usr/bin/wallxplanet.sh and /usr/bin/downloadcloudsmap.sh to change output location of files"
for service in "downloadcloudsmap" "wallxplanet"
do
echo " systemctl restart ${service}"
done
true
}
pre_remove() {
# Remove symlink in systemd and stop service
for service in "downloadcloudsmap.timer" "wallxplanet"
do
systemctl disable $service
systemctl stop $service
done
systemctl daemon-reload
true
}
|