Skip to content

Instantly share code, notes, and snippets.

@fabiomsnunes
Created January 20, 2023 11:28
Show Gist options
  • Save fabiomsnunes/48053b4b460e4587fd9605629442640e to your computer and use it in GitHub Desktop.
Save fabiomsnunes/48053b4b460e4587fd9605629442640e to your computer and use it in GitHub Desktop.
Script to remove/uninstall RunCloud from your server
# What a surprise, there is no official Runcloud uninstallation script for your server,
# you can see it at https://runcloud.io/docs/guide/server-management/delete-server
# they say "To completely uninstall RunCloud, you must reformat your server. We do not have an uninstallation script."
#This script may help, no need to describe every step the echos say it all
#!/bin/bash
echo "Removing runcloud user from system"
sudo userdel -r runcloud
echo "Removing runcloud-www user from system"
sudo userdel -r runcloud-www
echo "Removing runcloud banner at ssh login in /etc/motd"
sudo sh -c 'echo "" > /etc/motd'
echo "Removing /Runcloud.... root directory for package"
sudo rm -rf /Runcloud
echo "Script finished, reboot your system is recomended, and after this check with 'htop -u root' and filter for runcloud process still not running"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment