commit 3d093d1a39937f16e2f45d7085989d41d7f103c8 Author: randyjc Date: Sun Jul 9 19:09:56 2023 +0000 initial sync diff --git a/lychee-sync.sh b/lychee-sync.sh new file mode 100755 index 0000000..ced6e89 --- /dev/null +++ b/lychee-sync.sh @@ -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