Commit 93485550 authored by Maxime Bombar's avatar Maxime Bombar

Desarchive /usr/scripts/utils/letsencrypt/sync-certificates

parent 2587d2bd
#!/bin/bash
if [ $UID != 0 ]; then
echo "Le script devrait être lancé en tant que root"
exit 1
fi
if [[ "$HOSTNAME" = "bakdaur" ]]; then
rsync -e 'ssh -i /etc/crans/secrets/letsencrypt-proxy' --rsync-path="/usr/bin/sudo /usr/bin/rsync" -av --progress -A -H -X /etc/letsencrypt/live /etc/letsencrypt/archive rpcssh@frontdaur.adm.crans.org:/etc/letsencrypt/
else
echo "Devrait être lancé sur bakdaur"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment