2 groupadd -g 400 icecast &>/dev/null
3 useradd -u 400 -g icecast -d /var/icecast -s /bin/false icecast &>/dev/null
5 mkdir -p /var/icecast/log
6 mkdir -p /var/icecast/etc
7 touch /var/icecast/log/error.log /var/icecast/log/access.log
8 chown -R icecast:icecast /var/icecast/log
9 cp -p /etc/{hosts,localtime,mime.types,resolv.conf} /var/icecast/etc/
12 echo "==> icecast: Icecast is ready to be run chrooted in /var/icecast"
14 echo "==> icecast: Edit icecast.xml"
16 echo "==> icecast: * CHANGE THE DEFAULT PASSWORDS FOR SOURCE CLIENTS, RELAYS AND"
17 echo "==> icecast: THE ADMIN INTERFACE"
19 echo "==> icecast: Add 'icecast' to DAEMONS in /etc/rc.conf if you want icecast at startup"
23 cp -p /etc/{hosts,localtime,mime.types,resolv.conf} /var/icecast/etc/
27 usedel icecast &>/dev/null
28 chown -R root:root /var/icecast/log
29 rm -f /etc/icecast.xml
30 rm -f /etc/icecast/icecast.xml
35 echo "==> icecast: Directory /var/icecast remained after uninstallation."