unstall.sh 322 B

123456789101112131415
  1. #!/bin/bash
  2. if [[ -d /usr/lib/systemd/system ]]; then
  3. systemctl disable srs
  4. systemctl stop srs
  5. rm -f /usr/lib/systemd/system/srs.service
  6. rm -f /etc/init.d/srs
  7. else
  8. /sbin/chkconfig srs off
  9. /sbin/chkconfig --del srs
  10. /etc/init.d/srs stop
  11. rm -f /etc/init.d/srs
  12. fi
  13. rm -rf /usr/local/srs
  14. echo "SRS uninstalled"