главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/get-cert.sh
blob: ef9d3ed6febb43b92372f21571604ef054219cf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

if [ -f .env ]; then
  . ./.env
else
  . ./.env.example
fi

# ---

echo 'Installing Certbot...'
apt-get install -y certbot python3-certbot-nginx

if ![$LT_DOMAIN = "_" ]; then
  certbot --nginx -d $LT_DOMAIN
else
  echo 'Please set the $LT_DOMAIN variable in the .env file to your domain name.'
  exit 1
fi

echo 'Done! Now you have SSL enabled on your LibreTranslate instance.'