X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=all_new_2018%2Fletsencrypt.sh;h=2e6a03b2194c06b1e71761dcd7975f063e1283a0;hb=0f5fcabaa89a7436551363fc802c150ce3218156;hp=c89e37f660afabe10a5df008a06a3d5fdaee2824;hpb=db8166ccd4711d311a845d009e859c9c415ea657;p=config
diff --git a/all_new_2018/letsencrypt.sh b/all_new_2018/letsencrypt.sh
index c89e37f..2e6a03b 100755
--- a/all_new_2018/letsencrypt.sh
+++ b/all_new_2018/letsencrypt.sh
@@ -35,7 +35,7 @@ if [ "${action}" = "set" ]; then
fi
mail="$3"
domain="$4"
- ssh -t plom@${server} "su -c 'apt -y install certbot && certbot certonly --standalone --agree-tos -m ${mail} -d ${server}'"
+ ssh -t plom@${server} "su -c 'apt update && apt -y install certbot && certbot certonly --standalone --agree-tos -m ${mail} -d ${server}'"
elif [ "${action}" = "get" ]; then
# Get /etc/letsencrypt/ as tar file.
ssh -t plom@${server} 'su -c "cd /etc/ && tar cf letsencrypt.tar letsencrypt && chown plom:plom letsencrypt.tar && mv letsencrypt.tar /home/plom/"'