diff options
Diffstat (limited to 'madsonic6.install')
-rw-r--r-- | madsonic6.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/madsonic6.install b/madsonic6.install new file mode 100644 index 000000000000..d954ab35c44e --- /dev/null +++ b/madsonic6.install @@ -0,0 +1,27 @@ +post_install() { + useradd -d /var/madsonic6 -MrU madsonic6 + chown -R madsonic6:madsonic6 /var/madsonic6 + systemctl daemon-reload &> /dev/null + echo "*************************************************" + echo "* Edit /etc/madsonic.conf 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 +} + |