Guest User

Untitled

a guest
Mar 13th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #!/bin/bash
  2. # Installer variables
  3. ZENOSSHOME="/home/zenoss"
  4. DOWNDIR="/tmp"
  5. UPGRADE="no"
  6.  
  7. . $ZENOSSHOME/zenoss424-srpm_install/variables.sh
  8.  
  9. # Post Install Tweaks
  10. wget --no-check-certificate -N https://raw2.github.com/hydruid/zenoss/master/core-autodeploy/4.2.4/misc/zenoss -P $DOWNDIR/
  11. cp $DOWNDIR/zenoss /etc/init.d/zenoss
  12. chmod 755 /etc/init.d/zenoss
  13. echo && touch /etc/insserv/overrides/zenoss
  14. cat > /etc/insserv/overrides/zenoss << EOL
  15. ### BEGIN INIT INFO
  16. # Provides: zenoss
  17. # Required-Start: $local_fs $network $remote_fs
  18. # Required-Stop: $local_fs $network $remote_fs
  19. # Should-Start: $all
  20. # Should-Stop: $all
  21. # Default-Start: 2 3 4 5
  22. # Default-Stop: 0 1 6
  23. # Short-Description: Start/stop Zenoss
  24. # Description: Start/stop Zenoss
  25. ### END INIT INFO
  26. EOL
  27. update-rc.d zenoss defaults && sleep 2
Advertisement
Add Comment
Please, Sign In to add comment