summarylogtreecommitdiffstats
path: root/mediatracker.install
blob: 32f9fb9875df5bf94d6aabb9f5d3346a081d6c53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
    mkdir /var/lib/mediatracker
    echo "To run, systemctl start mediatracker"
    echo "site at localhost:7481"
}

post_upgrade() {
    if [ -d "/home/mediatracker" ]; then
       systemctl stop mediatracker
       usermod -m -d /var/lib/mediatracker mediatracker 
    fi

}

post_remove() {
    userdel mediatracker
}