mirror of
https://github.com/YunoHost-Apps/acropolis_ynh.git
synced 2024-09-03 18:06:22 +02:00
changes
This commit is contained in:
parent
dfb7123052
commit
294203af56
2 changed files with 13 additions and 10 deletions
|
@ -31,7 +31,15 @@
|
||||||
"type": "domain"
|
"type": "domain"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "admin",
|
"name": "username",
|
||||||
|
"type": "user"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "email",
|
||||||
|
"type": "user"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "password",
|
||||||
"type": "user"
|
"type": "user"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,11 +28,9 @@ ynh_abort_if_errors
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url="/"
|
path_url="/"
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
admin=$YNH_APP_ARG_ADMIN
|
username=$YNH_APP_ARG_USERNAME
|
||||||
# email=$YNH_APP_ARG_EMAIL
|
email=$YNH_APP_ARG_EMAIL
|
||||||
# password=$YNH_APP_ARG_PASSWORD
|
password=$YNH_APP_ARG_PASSWORD
|
||||||
|
|
||||||
ynh_script_progression --message="testing.... $admin" --weight=1
|
|
||||||
|
|
||||||
### If it's a multi-instance app, meaning it can be installed several times independently
|
### 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
|
### The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||||
|
@ -261,13 +259,10 @@ pushd "$final_path"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
ynh_script_progression --message="Create initial admin user..."
|
ynh_script_progression --message="Create initial admin user..."
|
||||||
# ynh_script_progression --message=$admin
|
|
||||||
# ynh_script_progression --message=$email
|
|
||||||
# ynh_script_progression --message=$password
|
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
rake_exec="sudo -u $app $ynh_ruby_load_path RAILS_ENV=production bin/rake"
|
rake_exec="sudo -u $app $ynh_ruby_load_path RAILS_ENV=production bin/rake"
|
||||||
ynh_exec_warn_less $rake_exec "admin:create[thomas, thomas@yopmail.com, password]"
|
ynh_exec_warn_less $rake_exec "admin:create[$username, $email, $password]"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue