mirror of
https://github.com/YunoHost-Apps/pytition_ynh.git
synced 2024-09-03 20:16:08 +02:00
fix
This commit is contained in:
parent
fc89ec7c7b
commit
433e697778
2 changed files with 6 additions and 1 deletions
|
@ -47,6 +47,9 @@ ram.runtime = "50M"
|
|||
choices = ["fr", "en"]
|
||||
default = "fr"
|
||||
|
||||
[install.admin]
|
||||
type = "user"
|
||||
|
||||
[install.password]
|
||||
help.en = "Administrator password"
|
||||
help.fr = "Mot de passe administrateur"
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -87,7 +89,7 @@ ynh_exec_as $app bash -c "
|
|||
python3 manage.py collectstatic
|
||||
python3 manage.py compilemessages
|
||||
DJANGO_SUPERUSER_PASSWORD='$password' \
|
||||
python3 manage.py createsuperuser --noinput --username admin --email 'admin@$domain'
|
||||
python3 manage.py createsuperuser --noinput --username $admin --email $email --password '$password'
|
||||
"
|
||||
|
||||
chmod 750 "$install_dir/static"
|
||||
|
|
Loading…
Reference in a new issue