Commit ed952286 authored by HgO's avatar HgO
Browse files

suppress warnings when cloning renew-cert git repo

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