mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
add uninstall script.
This commit is contained in:
parent
b45876cf6e
commit
522ffad4d3
21
uninstall.sh
21
uninstall.sh
@ -1,7 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "REMOVING EXISTING CONTAINERS..."
|
||||
echo "Uninstall OneUptime. This will remove OneUptime from this server"
|
||||
read -r -p "Do you want to uninstall OneUptime? [y/N] " response
|
||||
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]
|
||||
then
|
||||
echo "OK!"
|
||||
else
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
echo "Uninstalling OneUptime..."
|
||||
sudo docker-compose down
|
||||
sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
echo "EXISTING CONTAINERS REMOVED."
|
||||
sudo docker-compose rm
|
||||
echo "OneUptime uninstalled."
|
||||
echo "We would like to hear your feedback to make this product better for you and for other users, please email us at hello@oneuptime.com."
|
||||
echo " - If you notice a bug, we will fix it for you."
|
||||
echo " - If you need a feature, we will add that to the roadmap and let you know the estimated time to ship."
|
||||
echo "We would love to hear your feedback. Email: hello@oneuptime.com"
|
Loading…
Reference in New Issue
Block a user