X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=all_new_2018%2Fletsencrypt_remote.sh;h=6b7b54f17ae41e4fecd043e519f60cb667b19a0e;hb=6ebf7555f45713e31593ebf15c16624965b6c39f;hp=18f9aa4f0d50d9aa494d97aef328d045ff78387b;hpb=500ec90dee8ba3b3eec0bbd6804bd23c874238c1;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