Cloudron/lychee-sync.sh

11 lines
266 B
Bash
Executable File

#!/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