diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..9c824c9 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Deploy Authelia configuration +# Copies all files from authelia folder to /home/quangkhai/authelia + +set -e + +SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/authelia" && pwd)" +DEST_DIR="/home/quangkhai/authelia" + +echo "Starting deployment..." +echo "Source: $SOURCE_DIR" +echo "Destination: $DEST_DIR" + +# Create destination directory if it doesn't exist +if [ ! -d "$DEST_DIR" ]; then + echo "Creating destination directory: $DEST_DIR" + mkdir -p "$DEST_DIR" +fi + +# Copy all files +echo "Copying files..." +cp -rv "$SOURCE_DIR"/* "$DEST_DIR/" + +echo "✓ Deployment completed successfully!" +echo "Files copied to: $DEST_DIR" + +