1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mailman3_ynh.git synced 2024-09-03 19:36:17 +02:00

Adding e-mail argument

This commit is contained in:
Jérémie Parisel 2022-09-16 14:05:25 +02:00 committed by Félix Piédallu
parent f1198b0be7
commit 8a4b51fb03
2 changed files with 5 additions and 4 deletions

View file

@ -45,6 +45,10 @@ ram.runtime = "800M"
[install.password]
type = "password"
[install.email]
type = "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
#=================================================