diff --git a/buildpackage/bootstraps/bootstrap-install b/buildpackage/bootstraps/bootstrap-install index 0693159c366e4a6a8465b1c5a42c6eecb03c901e..fdc109c7d659cc246c413337f1fc53214d27c346 100644 --- a/buildpackage/bootstraps/bootstrap-install +++ b/buildpackage/bootstraps/bootstrap-install @@ -153,6 +153,11 @@ LOGFILE=/tmp/collected-information.log # Save stdout to file descriptor 3 and redirect all output to $LOGFILE exec 3>&1 &> ${LOGFILE} +# Remove any previous installation of the agent +rm -rf "${AGENT_DIR}" +/usr/sbin/userdel -r seed_mec +/usr/sbin/groupdel seed_mec + # Create seed_mec group and exit on error (except by the error of previous # existence of seed_mec group) if ! /usr/sbin/groupadd -f seed_mec; then