diff --git a/manifest.toml b/manifest.toml index 462d70b..1bbc9de 100644 --- a/manifest.toml +++ b/manifest.toml @@ -45,6 +45,10 @@ ram.runtime = "800M" [install.password] type = "password" + [install.email] + type = "email" + example = "user@example.org" + [resources] [resources.system_user] diff --git a/scripts/install b/scripts/install index 2cbb984..3ef8db1 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================