nim-vagrant/scripts/cron-schedule.sh

9 lines
189 B
Bash
Raw Normal View History

2018-12-25 14:55:43 +00:00
#!/usr/bin/env bash
mkdir /etc/cron.d 2>/dev/null
cron="* * * * * vagrant /usr/bin/php $2/../artisan schedule:run >> /dev/null 2>&1"
echo "$cron" > "/etc/cron.d/$1"
service cron restart