diff --git a/init.sh b/init.sh index 4fd7624..d6c1aff 100755 --- a/init.sh +++ b/init.sh @@ -1319,11 +1319,15 @@ runFullUninstall() isNotice "LEFT IN PLACE: the docker engine, docker-compose, apt-installed deps," isNotice "and your SSH config (so you can't get locked out)." echo "" - isQuestion "Type exactly DELETE LIBREPORTAL to confirm:" - local confirm; read -r confirm - if [[ "$confirm" != "DELETE LIBREPORTAL" ]]; then - isNotice "Aborted — nothing was removed." - return 0 + if [[ "$init_unattended_mode" == true ]]; then + isNotice "Unattended mode — proceeding without the DELETE LIBREPORTAL prompt." + else + isQuestion "Type exactly DELETE LIBREPORTAL to confirm:" + local confirm; read -r confirm + if [[ "$confirm" != "DELETE LIBREPORTAL" ]]; then + isNotice "Aborted — nothing was removed." + return 0 + fi fi isHeader "Tearing down LibrePortal"