1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mailman3_ynh.git synced 2024-09-03 19:36:17 +02:00
This commit is contained in:
Jérémie Parisel 2024-07-27 17:22:45 +02:00 committed by GitHub
commit cb9dc61259
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 4 deletions

View file

@ -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]

View file

@ -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
#=================================================

View file

@ -4,6 +4,8 @@ test_format = 1.0
[default]
args.email = "package_checker@domain.tld"
exclude = ["change_url"]
# -------------------------------