mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Add uninstall script
This commit is contained in:
parent
254549e3f4
commit
7af087652f
1 changed files with 11 additions and 3 deletions
|
@ -1,7 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ -d /usr/lib/systemd/system ]]; then
|
||||||
systemctl disable srs
|
systemctl disable srs
|
||||||
systemctl stop srs
|
systemctl stop srs
|
||||||
rm -rf /usr/local/srs
|
rm -f /usr/lib/systemd/system/srs.service
|
||||||
rm -f /etc/init.d/srs
|
rm -f /etc/init.d/srs
|
||||||
|
else
|
||||||
|
/sbin/chkconfig srs off
|
||||||
|
/sbin/chkconfig --del srs
|
||||||
|
/etc/init.d/srs stop
|
||||||
|
rm -f /etc/init.d/srs
|
||||||
|
fi
|
||||||
|
rm -rf /usr/local/srs
|
||||||
echo "SRS uninstalled"
|
echo "SRS uninstalled"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue