+++ /dev/null
-* * * * * runuser -l presquot -c '/usr/bin/php /application/artisan schedule:run' > /proc/1/fd/1 2>/proc/1/fd/2
--- /dev/null
+* * * * * /usr/bin/php /application/artisan schedule:run
php8.3-fpm \
less nano wget nodejs
-RUN apt -y --no-install-recommends install nodejs sudo openssh-server rsyslog cron mariadb-client zip unzip imagemagick
+RUN apt -y --no-install-recommends install nodejs sudo openssh-server rsyslog cron postfix mariadb-client zip unzip imagemagick
RUN apt update
RUN apt -y --no-install-recommends install python3 make g++ build-essential
/usr/sbin/service ssh start
# Cron
-chmod 0644 /etc/crontab && crontab -u root /etc/crontab && /usr/sbin/service cron start
+chmod 0644 /etc/crontab && crontab -u root /etc/crontab && chmod 644 /etc/crontab-user && crontab -u presquot /etc/crontab-user && /usr/sbin/service cron start
# Set user password
chpasswd < /root/passwords
# Rclone
- './www/.docker/config/rclone:/application/.config/rclone'
# Cron
- - './www/.docker/config/cron/crontab:/etc/crontab'
+ - './www/.docker/config/cron/root:/etc/crontab'
+ - './www/.docker/config/cron/user:/etc/crontab-user'
# PHP
- './www/.docker/config/php.ini:/etc/php/8.3/fpm/conf.d/99-overrides.ini'
# ENV
cd /docker/presquot
docker network create presquot
-chown 0:0 ./www/.docker/config/cron/crontab
+chown 1001:33 ./www/.docker/config/cron/user
+chown 0:0 ./www/.docker/config/cron/root
chown 0:0 ./www/.docker/config/sudoers
chown -R 999:999 ./database/data
chown -R 999:999 ./redis
protected function schedule(Schedule $schedule)
{
$schedule->job(new CheckForTrialExpirationDates)->dailyAt('13:00');
- $schedule->command('psq:fluidbook:archives')->everyFifteenMinutes();
+ $schedule->command('psq:fluidbook:archives')->everyThirtyMinutes();
+ $schedule->call(function(){
+ echo 'test ping !';
+ return 'test ping !';
+ })->everyMinute();
}
/**