From 90d27beaf606f5f8c262d7b9917b9602fcd9289b Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 26 Jul 2018 15:20:54 -0600 Subject: [PATCH] Make removal script more verbose. --- remove.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/remove.sh b/remove.sh index 34f2067..3f047f0 100644 --- a/remove.sh +++ b/remove.sh @@ -3,10 +3,17 @@ echo "Removing Gitea and DELETING ALL DATA." +echo "Stopping and removing the Gitea service." sudo systemctl stop gitea # Stop the Gitea service sudo systemctl disable gitea # Disable the Gitea service automatically starting on boot. sudo rm /etc/systemd/system/gitea.service # Delete the Gitea service. + +echo "Deleting Gitea configuration and Data." + sudo rm /usr/local/bin/gitea # Remove Gitea from Path sudo rm -rf /opt/gitea # Remove Gitea Data -echo "Done." +if test ! -d /opt/gitea + echo "Gitea has been completely removed." +else + echo "Gitea has not been completely removed. File an issue here: https://git.coolaj86.com/coolaj86/gitea-installer.sh/issues/new"