From a7b6a5b94682efe885a0ec102b2bfb63cb3c5dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 15 Mar 2024 13:15:59 +0100 Subject: [PATCH] Add init branch at git init --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index ca837ac..a9c81ca 100644 --- a/scripts/install +++ b/scripts/install @@ -22,7 +22,7 @@ fi ynh_script_progression --message="Setting up source files..." # Download, check integrity, uncompress and patch the source from app.src -ynh_exec_as "$app" git -C "$install_dir" init +ynh_exec_as "$app" git -C "$install_dir" init -b main ynh_exec_as "$app" git -C "$install_dir" remote add origin "$yunorunner_repository" ynh_exec_as "$app" git -C "$install_dir" fetch --quiet --depth=1 origin "$yunorunner_release" ynh_exec_as "$app" git -C "$install_dir" reset --quiet --hard FETCH_HEAD diff --git a/scripts/upgrade b/scripts/upgrade index fdcf795..4316ac6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,7 +35,7 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd" -- ynh_script_progression --message="Ensuring downward compatibility..." if [ ! -d "$install_dir/.git/" ]; then - ynh_exec_as "$app" git -C "$install_dir" init + ynh_exec_as "$app" git -C "$install_dir" init -b main git -C "$install_dir" remote add origin "$yunorunner_repository" fi