diff --git a/42git.sh b/42git.sh old mode 100644 new mode 100755 diff --git a/cert2-40_api.sh b/cert2-40_api.sh old mode 100644 new mode 100755 diff --git a/certs2-40.sh b/certs2-40.sh old mode 100644 new mode 100755 index d3b8c9d..47643cc --- a/certs2-40.sh +++ b/certs2-40.sh @@ -1,13 +1,14 @@ #!/bin/sh set -e -ssh_host="fg" +ssh_host="admin@fg.dafu.dev" +ssh_opts="-p 11422 -i /root/.ssh/id_ed25519" certname=fg.dafu.dev key=$(cat /mnt/docker/volumes/caddy_caddy_data/_data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/${certname}/${certname}.key) crt=$(cat /mnt/docker/volumes/caddy_caddy_data/_data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/${certname}/${certname}.crt) -run_ssh_script() { printf "%s" "${1}" | ssh $ssh_host; } +. /root/repo/40scripts/util.sh fg_set_cert_script=" execute batch start @@ -17,7 +18,7 @@ set private-key \"${key}\" set certificate \"${crt}\" end execute batch end -execute batch lastlog " +# execute batch lastlog run_ssh_script "${fg_set_cert_script}" diff --git a/sshkey_2-40.sh b/sshkey_2-40.sh old mode 100644 new mode 100755 diff --git a/util.sh b/util.sh old mode 100644 new mode 100755