updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / cruisecontrol-bin / cruisecontrol-bin.install
blobc2a07a77f751304d507de6ec34e2537a8d7db796
1 post_install() {
2         # Create cruisecontrol group
3         groupadd -g 52 cruisecontrol &>/dev/null
5         # Create cruisecontrol user/group
6         useradd -u 52 -g cruisecontrol -d /opt/cruisecontrol -s /bin/sh cruisecontrol &>/dev/null
8         # Change ownership of cruisecontrol related files
9         chown -R cruisecontrol:cruisecontrol \
10                 /opt/cruisecontrol \
11                 /var/log/cruisecontrol.log \
12                 /var/run/cruisecontrol.pid
15 pre_remove() {
16         # Stop cruisecontrol service
17         /etc/rc.d/cruisecontrol stop && sleep 1
19         # Remove cruisecontrol user
20         userdel cruisecontrol &>/dev/null