CC-3265: Move airtime-nuke.sh to utils. Done. Also added user message explaining what the script does and prevent non-root users from executing the script.
This commit is contained in:
parent
941da1fe44
commit
7e223aebae
1 changed files with 10 additions and 1 deletions
|
@ -1,35 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Are you sure? Press Enter to continue..."
|
||||
read
|
||||
|
||||
service airtime-playout stop >/dev/null 2>&1
|
||||
service airtime-media-monitor stop >/dev/null 2>&1
|
||||
service airtime-show-recorder stop >/dev/null 2>&1
|
||||
|
||||
airtime-pypo-stop >/dev/null 2>&1
|
||||
airtime-show-recorder-stop >/dev/null 2>&1
|
||||
|
||||
killall liquidsoap
|
||||
|
||||
rm -rf "/etc/airtime"
|
||||
rm -rf "/var/log/airtime"
|
||||
rm -rf "/etc/service/pypo"
|
||||
rm -rf "/etc/service/pypo-liquidsoap"
|
||||
rm -rf "/etc/service/recorder"
|
||||
rm -rf "/usr/share/airtime"
|
||||
rm -rf "/var/tmp/airtime"
|
||||
rm -rf "/var/www/airtime"
|
||||
rm -rf "/usr/bin/airtime-*"
|
||||
rm -rf "/usr/lib/airtime"
|
||||
rm -rf "/var/lib/airtime"
|
||||
rm -rf "/var/tmp/airtime"
|
||||
rm -rf "/opt/pypo"
|
||||
rm -rf "/opt/recorder"
|
||||
rm -rf "/srv/airtime"
|
||||
rm -rf "/etc/monit/conf.d/airtime-monit.cfg"
|
||||
rm -rf /etc/monit/conf.d/monit-airtime-*
|
||||
|
||||
echo "DROP DATABASE AIRTIME;" | su postgres -c psql
|
||||
echo "DROP LANGUAGE plpgsql;" | su postgres -c psql
|
||||
echo "DROP USER AIRTIME;" | su postgres -c psql
|
Loading…
Add table
Add a link
Reference in a new issue