mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 02:14:48 +00:00
Merge pull request #363 from crazy-max/artisan-schedule
handle artisan schedule:run
This commit is contained in:
commit
1168e59a3e
1 changed files with 3 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ if [ "$LIBRENMS_WEATHERMAP" = "true" ] && [ -n "$LIBRENMS_WEATHERMAP_SCHEDULE" ]
|
|||
echo "${LIBRENMS_WEATHERMAP_SCHEDULE} php -f /opt/librenms/html/plugins/Weathermap/map-poller.php" >>${CRONTAB_PATH}/librenms
|
||||
fi
|
||||
|
||||
echo "Creating LibreNMS cron artisan schedule:run"
|
||||
echo "* * * * * php /opt/librenms/artisan schedule:run --no-ansi --no-interaction > /dev/null 2>&1" >>${CRONTAB_PATH}/librenms
|
||||
|
||||
# Fix perms
|
||||
echo "Fixing crontabs permissions..."
|
||||
chmod -R 0644 ${CRONTAB_PATH}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue