From f6a3d4228c207864c511a74100833c24ee074f26 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sat, 15 May 2021 11:00:03 +0200 Subject: [PATCH] fix ssh --- manifest.json | 2 +- scripts/install | 3 +++ scripts/restore | 3 +++ scripts/upgrade | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index fad2294..2e1ac97 100644 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,7 @@ "email": "pierre@kayou.io" }, "requirements": { - "yunohost": ">= 4.1.5" + "yunohost": ">= 4.2.3" }, "multi_instance": false, "services": [ diff --git a/scripts/install b/scripts/install index 10019b2..cea7f1d 100644 --- a/scripts/install +++ b/scripts/install @@ -239,6 +239,9 @@ ynh_script_progression --message="Reconfigure GitLab..." --weight=13 gitlab-ctl reconfigure +# Allow ssh for git +usermod -a -G "ssh.app" "git" + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/restore b/scripts/restore index 91a0481..4a77da1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -156,6 +156,9 @@ ynh_systemd_action --action=restart --service_name="gitlab-runsvdir" --log_path= gitlab-rake gitlab:check SANITIZE=true +# Allow ssh for git +usermod -a -G "ssh.app" "git" + #================================================= # RELOAD NGINX #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 478b73b..1b99484 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -329,6 +329,9 @@ chown admin: "$config_path/gitlab-persistent.rb" gitlab-ctl reconfigure +# Allow ssh for git +usermod -a -G "ssh.app" "git" + #================================================= # NGINX CONFIGURATION #=================================================