add home view video and ticket model serializer and view

This commit is contained in:
Parsa Nazer
2025-02-26 22:45:56 +03:30
parent c2665fd1dc
commit 36c6b0129f
3 changed files with 29 additions and 7 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
#!/bin/sh
# Load environment variables
. /etc/profile
# Debugging output
echo "Cron environment:" >> /var/log/cron/cron.log
env >> /var/log/cron/cron.log
@@ -21,7 +21,7 @@ ZIP_FILE="backup_heymlz_shop${TIMESTAMP}.zip"
pg_dump -h $PG_HOST -p $PG_PORT -U $PG_USER -d $PG_DATABASE -w > /backups/$BACKUP_FILE
if [ $? -ne 0 ]; then
echo "Backup failed!" >> /var/log/cron/cron.log
echo "backup failed" >> /var/log/cron/cron.log
exit 1
fi
@@ -36,4 +36,4 @@ curl -F chat_id=$TELEGRAM_CHAT_ID2 \
ls -t /backups/*.zip | tail -n +4 | xargs rm -f
ls -t /backups/*.sql | tail -n +4 | xargs rm -f
echo "Backup completed at $(date)" >> /var/log/cron/cron.log
echo "backup completed at $(date)" >> /var/log/cron/cron.log