From ebffec9b0f1109d789918e671b6b49335a1c4cc2 Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Sun, 24 Mar 2024 17:22:43 +0100 Subject: [PATCH] tweaking --- install.sh | 1 + uninstall.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 42179cc2..86ab20a6 100755 --- a/install.sh +++ b/install.sh @@ -149,6 +149,7 @@ fi # Run Ansible Playbook echo "### Now running T-Pot Ansible Installation Playbook ..." echo +rm ${HOME}/install_tpot.log ANSIBLE_LOG_PATH=${HOME}/install_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION} # Something went wrong diff --git a/uninstall.sh b/uninstall.sh index dd3b0dcf..9d2d8659 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -79,6 +79,7 @@ fi # Run Ansible Playbook echo "### Now running T-Pot Ansible Uninstallation Playbook ..." echo +rm ${HOME}/uninstall_tpot.log ANSIBLE_LOG_PATH=${HOME}/uninstall_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION} # Something went wrong @@ -91,7 +92,7 @@ if [ ! $? -eq 0 ]; else echo "### Playbook was successful." echo "### Now removing ${HOME}/tpotce." - rm -rf ${HOME}/tpotce + sudo rm -rf ${HOME}/tpotce rm -rf ${HOME}/tpot.yml echo fi