Commit 72b0241f authored by HgO's avatar HgO
Browse files

Merge branch '30-suppress-warnings-when-cloning-the-renew-cert-repo' into 'unstable'

Resolve "Suppress warnings when cloning the renew-cert repo"

See merge request !35
parents 0ab41611 ed952286
......@@ -90,8 +90,8 @@ renew_cert_cron_script="renew_cert_cron.sh"
ynh_script_progression "Installing automatic VPN certificate renewal…"
git clone $renew_cert_repo $renew_cert_path
git -C $renew_cert_path checkout $renew_cert_version
ynh_exec_warn_less git clone $renew_cert_repo $renew_cert_path
ynh_exec_warn_less git -C $renew_cert_path checkout $renew_cert_version
# We wrap the python3 script that actually renew the VPN certificate
# This wrapper will be used as a daily cron task
......
......@@ -122,13 +122,13 @@ renew_cert_path="$opt_path/renew_cert"
renew_cert_cron_script="renew_cert_cron.sh"
if [[ ! -e $renew_cert_path ]]; then
git clone $renew_cert_repo $renew_cert_path
ynh_exec_warn_less git clone $renew_cert_repo $renew_cert_path
else
git -C $renew_cert_path remote set-url origin $renew_cert_repo
git -C $renew_cert_path fetch -t
ynh_exec_warn_less git -C $renew_cert_path remote set-url origin $renew_cert_repo
ynh_exec_warn_less git -C $renew_cert_path fetch -t
fi
git -C $renew_cert_path checkout $renew_cert_version
ynh_exec_warn_less git -C $renew_cert_path checkout $renew_cert_version
# We wrap the python3 script that actually renew the VPN certificate
# This wrapper will be used as a daily cron task
......
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