1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00

Create admin user during installation

This commit is contained in:
Jimmy Monin 2018-04-03 18:28:04 +02:00
parent b129d88a6b
commit 92f535009e

View file

@ -190,16 +190,17 @@ $rake_exec db:migrate
$rake_exec assets:precompile) $rake_exec assets:precompile)
#================================================= #=================================================
# INSTALL PLUGINS # CREATE ADMIN USER
#================================================= #=================================================
# # Install LDAP plugin # Create a random password
# ynh_setup_source "$final_path/plugins" ldap-auth admin_pwd=$(ynh_string_random)
# # Set permissions to app files (cd "$final_path"
# chown -R $app: $final_path/plugins sudo -u discourse bin/rake RAILS_ENV=production admin:create <<< "$admin_mail
# # TODO install all in one shot? $admin_pwd
# (cd "$final_path" $admin_pwd
# exec_as $app bin/rake RAILS_ENV=production assets:precompile) y
")
#================================================= #=================================================
# CONFIGURE PLUGINS # CONFIGURE PLUGINS