summarylogtreecommitdiffstats
path: root/wallxplanet.install
blob: 1dee87df664d6e3239208dcd091a145193f5d5b5 (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() {
    # Reload systemctl
    systemctl daemon-reload

    echo "You must create /etc/wallxplanet/wallxplanet.conf. Example: /etc/wallxplanet/wallxplanet_sample.conf"
    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"

    for service in "downloadcloudsmap" "wallxplanet" do
        echo "  systemctl restart downloadcloudsmap"
        echo "  systemctl restart wallxplanet"
    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
}