Fix Cron Job not working due to permission
Change cron job file permission
@@ -483,6 +483,13 @@ if [ ${WHATTOINSTALL} = "full" ]; then
fi
fi
+echo "[*] Setting permissions on redelk base cron job" | tee -a $LOGFILE
+chmod 600 ./mounts/redelk-config/etc/cron.d/redelk >> $LOGFILE 2>&1
+ERROR=$?
+if [ $ERROR -ne 0 ]; then
+ echo "[X] Could not set permissions on redelk base cron (Error Code: $ERROR)." | tee -a $LOGFILE
+fi
+
echo "[*] Setting permissions on logstash configs" | tee -a $LOGFILE
chown -R 1000 ./mounts/logstash-config/* >> $LOGFILE 2>&1
ERROR=$?
