1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00
This commit is contained in:
kam 2017-06-28 16:28:20 +02:00
parent 88bb4ab8bb
commit 03c6434e54

View file

@ -28,6 +28,8 @@ source /usr/share/yunohost/helpers
ynh_app_setting_set "$app" is_public "$is_public" ynh_app_setting_set "$app" is_public "$is_public"
mailadmin=$(ynh_user_get_info $admin mail) mailadmin=$(ynh_user_get_info $admin mail)
port=$(ynh_find_port 8080)
rdmPass=$(ynh_string_random 30)
# Check domain/path availability # Check domain/path availability
sudo yunohost app checkurl "${domain}${path_url}" -a "$app" \ 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 cp -f ../conf/gitlab.rb /etc/gitlab/gitlab.rb
sudo gitlab-ctl reconfigure 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.admin = true
newuser.confirmed_at = Time.now newuser.confirmed_at = Time.now
newuser.confirmation_token = nil newuser.confirmation_token = nil