From 03c6434e54eac358b6468bcbf5a593ed6a796a18 Mon Sep 17 00:00:00 2001 From: kam Date: Wed, 28 Jun 2017 16:28:20 +0200 Subject: [PATCH] fix --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 83c8ad4..e4979fd 100644 --- a/scripts/install +++ b/scripts/install @@ -28,6 +28,8 @@ source /usr/share/yunohost/helpers ynh_app_setting_set "$app" is_public "$is_public" mailadmin=$(ynh_user_get_info $admin mail) +port=$(ynh_find_port 8080) +rdmPass=$(ynh_string_random 30) # Check domain/path availability sudo yunohost app checkurl "${domain}${path_url}" -a "$app" \ @@ -52,10 +54,8 @@ sed -i "s@PORT@$port@" ../conf/gitlab.rb sudo cp -f ../conf/gitlab.rb /etc/gitlab/gitlab.rb sudo gitlab-ctl reconfigure -echo $admin -echo $mailadmin -echo "newuser = User.new({ \"email\"=>'$mailadmin', \"username\"=>'$admin', \"name\"=>'$admin', \"password\"=>'12345678'}) +echo "newuser = User.new({ \"email\"=>'$mailadmin', \"username\"=>'$admin', \"name\"=>'$admin', \"password\"=>'$rdmPass'}) newuser.admin = true newuser.confirmed_at = Time.now newuser.confirmation_token = nil