2 echo -n "adding squeezeboxserver user... "
3 useradd -c "SqueezeBoxServer" -g users -s /bin/false squeezeboxserver && echo "done."
4 passwd -l squeezeboxserver &>/dev/null
6 chown -R squeezeboxserver:users /home/squeezeboxserver
8 install -o squeezeboxserver -d /var/cache/squeezeboxserver
9 touch /var/log/squeezeboxserver.log
10 chown squeezeboxserver:users /var/log/squeezeboxserver.log
14 ==> SqueezeBoxServer uses MySQL instead of sqlite. If you have MySQL up and running
15 ==> you can configure SqueezeBoxServer to use that server as described here:
16 ==> http://wiki.slimdevices.com/index.php/ExistingMySQLInstance
18 ==> PLEASE NOTE: SqueezeBoxServer should always be run as the user 'squeezeboxserver'.
19 ==> This is easily done by adding squeezeboxserver to the DAEMONS array in rc.conf,
20 ==> after network and mysql.
22 ==> Additional run-time options can be added to /etc/conf.d/squeezeboxserver.
23 ==> Please refer to "/home/squeezeboxserver/slimserver.pl --help" for full details.
29 chown -R squeezeboxserver:users /home/squeezeboxserver
33 ==> SqueezeBoxServer uses MySQL instead of sqlite. If you have MySQL up and running
34 ==> you can configure SqueezeBoxServer to use that server as described here:
35 ==> http://wiki.slimdevices.com/index.php/ExistingMySQLInstance
41 # pre_remove gets called whenever post_remove is defined.
46 # post_remove doesn't start at a newline like the other post_* functions,
47 # so we'll have to make one for ourselves.
48 echo -n -e "\nremoving squeezeboxserver user... "
49 userdel squeezeboxserver && echo "done."
51 rm -r /var/cache/squeezeboxserver /var/log/squeezeboxserver.log