Browse Source

update details in instructions

Guilhem Saurel 7 years ago
parent
commit
226cceb853
1 changed files with 16 additions and 10 deletions
  1. 16 10
      README.md

+ 16 - 10
README.md

@@ -5,7 +5,14 @@
 ## Install on a clean Arch
 
 ```
-echo 'LANG="en_US.UTF-8"' > /etc/locale.conf
+# Set variables
+export LANG=en_US.UTF-8
+export DOMAIN=oxyta.net
+export MAIL=services@$DOMAIN
+export MYSQL_PASSWORD=$(openssl rand -base64 32)
+export MYSQL_ROOT_PASSWORD=$(openssl rand -base64 32)
+
+echo LANG="$LANG" > /etc/locale.conf
 mkdir -p /etc/nginx/sites-enabled/ /srv/letsencrypt ~/.ssh
 
 # Install packages
@@ -24,20 +31,19 @@ ln -s ../keys/ssh authorized_keys
 cd
 git clone https://framagit.org/altermediatic/docker-atelier.git
 cd docker-atelier
-```
-
-## Deploy Services
 
-
-```
-export DOMAIN=oxyta.net
-export MAIL=services@$DOMAIN
-export MYSQL_PASSWORD=$(openssl rand -base64 32)
-export MYSQL_ROOT_PASSWORD=$(openssl rand -base64 32)
+# Get main Lets Encrypt cert
 
 cp nginx.conf /etc/nginx
 systemctl restart nginx
 certbot certonly --email $MAIL --webroot -w /srv/letsencrypt/ --agree-tos -d $DOMAIN,www.$DOMAIN
+```
+
+Say No
+
+```
+# Deploy Services
+
 for service in pad git cloud frontal
 do
     pushd $service