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:
parent
b129d88a6b
commit
92f535009e
1 changed files with 9 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue