blob: ee3c60c15196f9657155799385992ef25c3717c8 (
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
|
post_install() {
useradd -d /var/madsonic6 -MrU madsonic6
chown -R madsonic6:madsonic6 /var/madsonic6
systemctl daemon-reload &> /dev/null
echo "*************************************************"
echo "* Edit /var/madsonic6/madsonic.sh to configure madsonic *"
echo "* Start with systemctl start madsonic6.service *"
echo "*************************************************"
}
post_upgrade(){
useradd -d /var/madsonic6 -MrU madsonic6
chown -R madsonic6:madsonic6 /var/madsonic6
systemctl daemon-reload &> /dev/null
echo "* Remember to restart madsonic6.service *"
}
pre_remove(){
systemctl stop madsonic6
}
post_remove(){
userdel madsonic6
}
|