crontab update wasnt reflected without specifying the user

parent 61d90896
......@@ -26,7 +26,8 @@ mkdir -p /usr/local/bro/etc/
#setup the cron task
SCALE_SCRIPT='/home/ubuntu/idsScale.sh'
crontab -l | { cat; echo "*/5 * * * * $SCALE_SCRIPT"; } | crontab -
sudo crontab -u root -l | { cat; echo "*/5 * * * * $SCALE_SCRIPT"; } | sudo crontab -u root -
sudo crontab -u root -l
#start creating the file conf for 4 instance
echo "[manager]" > $BRO_CFG_FILE
......
......@@ -26,7 +26,8 @@ mkdir -p /usr/local/bro/etc/
#setup the cron task
SCALE_SCRIPT='/home/ubuntu/idsScale.sh'
crontab -l | { cat; echo "*/5 * * * * $SCALE_SCRIPT"; } | crontab -
sudo crontab -u root -l | { cat; echo "*/5 * * * * $SCALE_SCRIPT"; } | sudo crontab -u root -
sudo crontab -u root -l
#start creating the file conf for 4 instance
echo "[bro]" > $BRO_CFG_FILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment