From 2e2a12dc2f56ccfe3ddcf414d9519ee4abe25bff Mon Sep 17 00:00:00 2001 From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Date: Wed, 27 Jul 2011 11:13:21 -0300 Subject: [PATCH] bootstrap-install: Added remotion of the crontab(1) of seed_mec user This remotion prevents the wrong/lack of permissions in seed_mec user's crontab(1), which prevents the agent to correctly edit its crontab(1). Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Acked-by: Josiney de Souza <josineys@c3sl.ufpr.br> Acked-by: Klismann Smoger Mottin <ksm09@inf.ufpr.br> --- bootstraps/bootstrap-install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstraps/bootstrap-install b/bootstraps/bootstrap-install index d7fe259..080de5d 100644 --- a/bootstraps/bootstrap-install +++ b/bootstraps/bootstrap-install @@ -163,6 +163,10 @@ fi # Remove the temporary skel, as it isn't needed anymore rmdir "${TMPSKEL}" +# Remove old crontab of seed_mec, in case there's one, avoinding a specific +# error of wrong owner/lack of permissions +crontab -u seed_mec -r + # Check if this is not an UCA Classmate, UCA Server nor ProInfo Projector, and # if the line that gives root permission doesn't exist before adding it if ! test -n "${PROJECTOR}" -o -f "/usr/sbin/projetor" -o \ -- GitLab