From 9895981ece9249d015fc8786c4a1b9c9d6ea1d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Aime?= Date: Wed, 20 Jan 2021 17:59:50 +0100 Subject: [PATCH] Adding already installed instance verification --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index 4067f3c..b3c089c 100644 --- a/install.sh +++ b/install.sh @@ -353,6 +353,13 @@ reboot_box() { if [[ $EUID -ne 0 ]]; then echo "This must be run as root. Type in 'sudo bash $0' to run." exit 1 +elif [[ -f /usr/share/tinycheck/config.yaml ]]; then + echo "You have a TinyCheck instance already installed on this box." + echo " - If you want to update the instance, please execute:" + echo " sudo bash /usr/share/tinycheck/update.sh" + echo " - If you want to uninstall the instance, please execute:" + echo " sudo bash /usr/share/tinycheck/uninstall.sh" + exit 1 else welcome_screen check_operating_system