From 923447fa4ff3d6987d819c844912174c45999a06 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Thu, 7 Jun 2018 14:42:39 +0200 Subject: [PATCH] [fix] ynh_check_starting and ssh push --- scripts/_common.sh | 1 + scripts/install | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index a7fa11a..0e4e28c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -49,6 +49,7 @@ config_gitea() { ynh_backup_if_checksum_is_different "$final_path/custom/conf/app.ini" cp ../conf/app.ini "$final_path/custom/conf" + usermod -s /bin/bash $app if [ "$path_url" = "/" ] then diff --git a/scripts/install b/scripts/install index 406d689..83d5123 100644 --- a/scripts/install +++ b/scripts/install @@ -111,4 +111,5 @@ yunohost service add "$app" --log "/var/log/$app/$app.log" ynh_use_logrotate "/var/log/$app" # Reload services -ynh_check_starting "INFO] Listen: http://0.0.0.0:" "/var/log/$app/gitea.log" +ynh_check_starting "Serving [::]:$port with pid" "/var/log/$app/gitea.log" +systemctl gitea restart \ No newline at end of file