29 lines
638 B
Bash
29 lines
638 B
Bash
#!/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"
|
|
|
|
|