Files
Atlas/add-nextcloud-credentials.sh
2025-11-12 20:21:32 +01:00

23 lines
631 B
Bash

#!/bin/bash
# Script to add Nextcloud credentials to .env file
ENV_FILE=".env"
# Check if Nextcloud credentials already exist
if grep -q "NEXTCLOUD_PASSWORD=" "$ENV_FILE"; then
echo "Nextcloud credentials already configured in .env"
echo "Current NEXTCLOUD_PASSWORD line:"
grep "NEXTCLOUD_PASSWORD=" "$ENV_FILE"
else
echo "Adding Nextcloud credentials to .env..."
cat >> "$ENV_FILE" << 'EOL'
# Nextcloud Calendar Integration
NEXTCLOUD_URL="https://cloud.savethemoment.photos"
NEXTCLOUD_USERNAME="SaveTheMoment-Atlas"
NEXTCLOUD_PASSWORD="T.H,Nwq>S\"83Vp7"
EOL
echo "✅ Nextcloud credentials added successfully!"
fi