From 12507bfaede30ce5f80ba38d554ec059bdbb860d Mon Sep 17 00:00:00 2001 From: Filippo Squillace Date: Sun, 21 Dec 2014 21:34:24 +0100 Subject: [PATCH] Fix issue #38 --- lib/core.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core.sh b/lib/core.sh index c63ab2a..96dfb4e 100644 --- a/lib/core.sh +++ b/lib/core.sh @@ -204,6 +204,8 @@ function delete_juju(){ die "Try to delete juju using root permissions" fi fi + # the CA directories are read only and can be deleted only by changing the mod + chmod -R +w ${JUJU_HOME}/etc/ca-certificates if rm -rf ${JUJU_HOME}/* then info "JuJu deleted in ${JUJU_HOME}"