#!/bin/bash # Change to the directory containing the files (assuming it's named 'dist') cd dist # Initialize FTP connection ftp -n << EOF open $FTP_SERVER user $FTP_USER $FTP_PASSWORD put -r . put ../geofeed.csv # Close FTP connection bye EOF # Refresh cache curl -H "AccessKey: $ACCESS_KEY" "https://api.bunny.net/purge?url=https%3A%2F%2Fdn42.m724.eu&async=false"