Skip to content

Instantly share code, notes, and snippets.

@je4npw
Created April 27, 2022 00:40
Show Gist options
  • Save je4npw/7d303b78dda36f09ac04b7541da88346 to your computer and use it in GitHub Desktop.
Save je4npw/7d303b78dda36f09ac04b7541da88346 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