im profil kann ein nutzer nun seine daten exportieren. man kann seinen account löschen. nach 2 jahren werden inaktive accounts gelöscht, 1 monat vorher wird eine email geschickt. Hilfetexte und Legal Pages in der Guest PWA korrigiert und vom layout her optimiert (dark mode).
This commit is contained in:
32
cron/checkout_reminders.sh
Normal file
32
cron/checkout_reminders.sh
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Checkout reminder cron job
|
||||
# Run hourly to send abandoned checkout reminders
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
APP_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$APP_DIR"
|
||||
|
||||
LOG_DIR="$APP_DIR/storage/logs"
|
||||
mkdir -p "$LOG_DIR"
|
||||
LOG_FILE="$LOG_DIR/cron-checkout-reminders.log"
|
||||
LOCK_FILE="$LOG_DIR/checkout_reminders.lock"
|
||||
|
||||
exec 204>"$LOCK_FILE"
|
||||
if ! flock -n 204; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
timestamp() {
|
||||
date --iso-8601=seconds
|
||||
}
|
||||
|
||||
echo "[$(timestamp)] Running checkout:send-reminders" >> "$LOG_FILE"
|
||||
if /usr/bin/env php artisan checkout:send-reminders --no-interaction --quiet >> "$LOG_FILE" 2>&1; then
|
||||
echo "[$(timestamp)] checkout:send-reminders completed" >> "$LOG_FILE"
|
||||
else
|
||||
status=$?
|
||||
echo "[$(timestamp)] checkout:send-reminders failed (exit $status)" >> "$LOG_FILE"
|
||||
exit $status
|
||||
fi
|
||||
32
cron/scheduler.sh
Normal file
32
cron/scheduler.sh
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Laravel scheduler runner
|
||||
# Add to crontab: * * * * * /path/to/repo/cron/scheduler.sh
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
APP_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$APP_DIR"
|
||||
|
||||
LOG_DIR="$APP_DIR/storage/logs"
|
||||
mkdir -p "$LOG_DIR"
|
||||
LOG_FILE="$LOG_DIR/cron-scheduler.log"
|
||||
LOCK_FILE="$LOG_DIR/scheduler.lock"
|
||||
|
||||
exec 203>"$LOCK_FILE"
|
||||
if ! flock -n 203; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
timestamp() {
|
||||
date --iso-8601=seconds
|
||||
}
|
||||
|
||||
echo "[$(timestamp)] Running php artisan schedule:run" >> "$LOG_FILE"
|
||||
if /usr/bin/env php artisan schedule:run --no-interaction >> "$LOG_FILE" 2>&1; then
|
||||
echo "[$(timestamp)] schedule:run completed" >> "$LOG_FILE"
|
||||
else
|
||||
status=$?
|
||||
echo "[$(timestamp)] schedule:run failed (exit $status)" >> "$LOG_FILE"
|
||||
exit $status
|
||||
fi
|
||||
Reference in New Issue
Block a user