X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;ds=sidebyside;f=all_new_2018%2Fletsencrypt_remote.sh;h=6b7b54f17ae41e4fecd043e519f60cb667b19a0e;hb=96d8dcb5e35145324d2b4dc53d8cbed723beedd2;hp=18f9aa4f0d50d9aa494d97aef328d045ff78387b;hpb=8d73bb2af6f64a557ae57c512fa2e097a52f42c1;p=config
diff --git a/all_new_2018/letsencrypt_remote.sh b/all_new_2018/letsencrypt_remote.sh
index 18f9aa4..6b7b54f 100755
--- a/all_new_2018/letsencrypt_remote.sh
+++ b/all_new_2018/letsencrypt_remote.sh
@@ -28,7 +28,7 @@ if [ "${action}" = "get" ]; then
elif [ "${action}" = "put" ]; then
# Expand letsencrypt.tar to /etc/letsencrypt/ on server.
scp letsencrypt.tar plom@${server}:~/
- ssh -t plom@${server} 'su -c "rmdir /etc/letsencrypt && mv letsencrypt.tar /etc/ && cd /etc/ && tar xf letsencrypt.tar && rm letsencrypt.tar"'
+ ssh -t plom@${server} 'su -c "apt -y install certbot && rmdir /etc/letsencrypt && mv letsencrypt.tar /etc/ && cd /etc/ && tar xf letsencrypt.tar && rm letsencrypt.tar"'
else
echo "Action must be 'get', or 'put'."
false