initial sync

This commit is contained in:
randyjc 2023-07-09 19:09:56 +00:00
commit 3d093d1a39
1 changed files with 10 additions and 0 deletions

10
lychee-sync.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# Run the PHP command
php /app/code/artisan lychee:sync /app/code/public/uploads/import/
# Check if the PHP command succeeded
if [ $? -eq 0 ]; then
# Delete all files and folders inside the directory
rm -rf /app/code/public/uploads/import/*
fi