mirror of
https://github.com/YunoHost-Apps/mailman3_ynh.git
synced 2024-09-03 19:36:17 +02:00
Merge 46875129a0
into bf9fbafb8c
This commit is contained in:
commit
cb9dc61259
3 changed files with 9 additions and 4 deletions
|
@ -45,6 +45,12 @@ ram.runtime = "800M"
|
|||
[install.password]
|
||||
type = "password"
|
||||
|
||||
[install.email]
|
||||
type = "email"
|
||||
ask.en = "The superuser email, can be your own email"
|
||||
ask.fr = "L'email super-utilisateur, peut être votre email"
|
||||
example = "user@example.org"
|
||||
|
||||
[resources]
|
||||
[resources.system_user]
|
||||
|
||||
|
|
|
@ -11,9 +11,6 @@ source /usr/share/yunohost/helpers
|
|||
# INITIALIZE AND STORE SETTINGS
|
||||
#=================================================
|
||||
|
||||
# Maybe add that as install arg ?
|
||||
email="admin@$domain"
|
||||
|
||||
# mailman3-app database
|
||||
db_name_app=$(ynh_sanitize_dbid --db_name="${app}_app")
|
||||
db_user_app=$db_name_app
|
||||
|
@ -88,7 +85,7 @@ popd
|
|||
#=================================================
|
||||
ynh_script_progression --message="Creating superuser..."
|
||||
pushd /usr/share/mailman3-web
|
||||
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('$admin', '$email', '$password')" | python manage.py shell
|
||||
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('$admin', '$email', '$password')" | python3 manage.py shell
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -4,6 +4,8 @@ test_format = 1.0
|
|||
|
||||
[default]
|
||||
|
||||
args.email = "package_checker@domain.tld"
|
||||
|
||||
exclude = ["change_url"]
|
||||
|
||||
# -------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue