aboutsummaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorNeonXP <i@neonxp.dev>2023-02-19 00:27:14 +0300
committerNeonXP <i@neonxp.dev>2023-02-19 00:27:14 +0300
commit26391945013bbcb647568da54be967e156f89032 (patch)
tree461cfa51a80fece21fe72c19d5a072877aaabf2b /setup.sh
initialHEADmaster
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh18
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