This commit is contained in:
Oliver
2026-02-15 17:18:32 -03:00
parent 38873facc0
commit a48789ec66
9 changed files with 197 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ exec > /4server/data/log/importDb.log 2>&1
echo "$(date '+%Y-%m-%d %H:%M') Import file $1"
# Generate random 8-digit filename
RANDOM_FILE="/4server/tmp/$(printf "%08d" $((RANDOM % 100000000))).zip"
RANDOM_FILE="/4server/tmp/import_$(date '+%Y%m%d_%H%M').zip"
# Download file from Google Drive using gdown
gdown "$1" -O "$RANDOM_FILE"