diff options
author | NeonXP <i@neonxp.dev> | 2023-02-19 00:27:14 +0300 |
---|---|---|
committer | NeonXP <i@neonxp.dev> | 2023-02-19 00:27:14 +0300 |
commit | 26391945013bbcb647568da54be967e156f89032 (patch) | |
tree | 461cfa51a80fece21fe72c19d5a072877aaabf2b /setup.sh |
Diffstat (limited to 'setup.sh')
-rwxr-xr-x | setup.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..63825d9 --- /dev/null +++ b/setup.sh @@ -0,0 +1,18 @@ +#! /bin/sh + +read -p "Ваш e-mail: " EMAIL +read -p "Базовый домен, для которого будут созданы поддомены с сервисами: " HOST + +PG_PASSWORD=`tr -dc A-Za-z0-9 </dev/urandom | head -c 13 ; echo ''` +REDIS_PASSWORD=`tr -dc A-Za-z0-9 </dev/urandom | head -c 13 ; echo ''` +TRANSMISSION_PASSWORD=`tr -dc A-Za-z0-9 </dev/urandom | head -c 13 ; echo ''` + +echo "TZ=Europe/Moscow +EMAIL=${EMAIL} +HOST=${HOST} +PG_USER=docker +PG_PASSWORD=${PG_PASSWORD} +REDIS_PASSWORD=${REDIS_PASSWORD} +TRANSMISSION_USER=root +TRANSMISSION_PASSWORD=${TRANSMISSION_PASSWORD}" > .env +echo "Конфиг записан в файл .env"
\ No newline at end of file |