move .env to bare_metal

This commit is contained in:
einhorn_b 2024-01-08 16:12:50 +01:00
parent bd59e06d17
commit 3c1449f9d5
2 changed files with 5 additions and 4 deletions

View File

@ -92,10 +92,10 @@ All your following installations in `install.sh` will fail!*
#### Create `.env` and set values
```bash
cd ~/gradido/deployment
cp ./bare_metal/.env.dist ./hetzner_cloud/.env
cd hetzner_cloud/
cd ~/gradido/deployment/bare_metal
cp .env.dist .env
nano .env
# adjust values accordingly
```
@ -105,5 +105,6 @@ Don't use this script if you have custom config in /etc/nginx/conf.d, because th
will remove it and ln ../bare_metal/nginx/conf.d
```bash
cd ~/gradido/deployment/hetzner_cloud
sudo chmod +x ./install.sh
sudo ./install.sh

View File

@ -17,7 +17,7 @@ set +o allexport
# the services and will therefore take precedence over the .env
if [ -f "./.env" ]; then
set -o allexport
source ./.env
source $SCRIPT_DIR/.env
set +o allexport
else
set -o allexport