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

changes for create admin rake task

This commit is contained in:
Thomas Phillips 2021-12-28 16:27:58 +05:30
parent df7f3f6415
commit 904a1a461d

View file

@ -28,9 +28,9 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url="/"
is_public=$YNH_APP_ARG_IS_PUBLIC
admin=$YNH_APP_ARG_ADMIN
email=$YNH_APP_ARG_EMAIL
password=$YNH_APP_ARG_PASSWORD
# admin=$YNH_APP_ARG_ADMIN
# email=$YNH_APP_ARG_EMAIL
# password=$YNH_APP_ARG_PASSWORD
### If it's a multi-instance app, meaning it can be installed several times independently
### The id of the app as stated in the manifest is available as $YNH_APP_ID
@ -265,7 +265,7 @@ ynh_script_progression --message=$password
pushd "$final_path"
rake_exec="sudo -u $app $ynh_ruby_load_path RAILS_ENV=production bin/rake"
ynh_exec_warn_less $rake_exec admin:create[$admin, $email, $password]
ynh_exec_warn_less $rake_exec admin:create['thomas', 'thomas@yopmail.com', 'password'] #[$admin, $email, $password]
popd
#=================================================