Initial commit - SaveTheMoment Atlas Basis-Setup
This commit is contained in:
22
add-nextcloud-credentials.sh
Normal file
22
add-nextcloud-credentials.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user