Added Variables to setup.sh

This commit is contained in:
Tim Schilling | IuK
2024-11-28 13:41:21 +01:00
parent af9bbde33b
commit da471ff907
5 changed files with 19 additions and 7 deletions
+1
View File
@@ -1,3 +1,4 @@
/keys
/temp
secrets.env
enviroment.env
+3 -4
View File
@@ -5,15 +5,14 @@ source ./enviroment/secret.env
source ./enviroment/envireoment.env
# Konfigurationsvariablen
WEBDAV_URL="$ENV_WEBDAV_URL"
MOUNT_POINT="$ENV_WEBDAV_MOUNT"
RCLONE_CONFIG="$ENV_RCLONE_CONF"
SFTP_HOST1="$ENV_SFTP_HOST1"
DOCKER_HOST="$ENV_DOCKER_HOST"
# Nutzerdaten
WEBDAV_USER="$ENV_WEBDAV_BENUTZER"
WEBDAV_PASS="$ENV_WEBDAV_PASSWORD"
SFTP_USER1="$ENV_SFTP_USER1"
+3 -3
View File
@@ -1,8 +1,8 @@
# .env
ENV_WEBDAV_URL=""
ENV_WEBDAV_MOUNT=""
ENV_RCLONE_CONF=""
ENV_WEBDAV_URL="https://www.kommsafe.de/webdav"
ENV_WEBDAV_MOUNT="/mnt/webdav"
ENV_RCLONE_CONF="/root/.config/rclone/rclone.conf"
ENV_DOCKER_HOST=""
+2
View File
@@ -1,2 +1,4 @@
# .env
WEBDAV_BENUTZER="dein_benutzername"
WEBDAV_PASSWORD="dein_passwort"
+10
View File
@@ -1,5 +1,15 @@
#!/bin/bash
source ./enviroment/envireoment.env
source ./enviroment/secret.env
# Variablen
WEBDAV_USER="$ENV_WEBDAV_BENUTZER"
WEBDAV_PASS="$ENV_WEBDAV_PASSWORD"
WEBDAV_URL="$ENV_WEBDAV_URL"
RCLONE_CONFIG="$ENV_RCLONE_CONF"
# Farben für die Ausgabe
GREEN="\033[0;32m"
RED="\033[0;31m"