mirror of
https://github.com/YunoHost-Apps/acropolis_ynh.git
synced 2024-09-03 18:06:22 +02:00
Merge pull request #42 from weex/defacto-suggestions
Address suggestions for better manifest
This commit is contained in:
commit
9e6eae2b72
2 changed files with 7 additions and 4 deletions
|
@ -31,12 +31,15 @@
|
||||||
"type": "domain"
|
"type": "domain"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "username",
|
"name": "admin",
|
||||||
"type": "user"
|
"type": "user"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "email",
|
"name": "email",
|
||||||
"type": "email"
|
"type": "email",
|
||||||
|
"ask": {
|
||||||
|
"en": "Enter email address for administative notifications."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "password",
|
"name": "password",
|
||||||
|
|
|
@ -28,7 +28,7 @@ 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
|
||||||
username=$YNH_APP_ARG_USERNAME
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
email=$YNH_APP_ARG_EMAIL
|
email=$YNH_APP_ARG_EMAIL
|
||||||
password=$YNH_APP_ARG_PASSWORD
|
password=$YNH_APP_ARG_PASSWORD
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ 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 db:migrate
|
ynh_exec_warn_less $rake_exec db:migrate
|
||||||
ynh_exec_warn_less $rake_exec assets:precompile
|
ynh_exec_warn_less $rake_exec assets:precompile
|
||||||
ynh_exec_warn_less $rake_exec "admin:create[$username, $email, $password]"
|
ynh_exec_warn_less $rake_exec "admin:create[$admin, $email, $password]"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue