1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mygpo_ynh.git synced 2024-09-03 19:55:52 +02:00

Fix admin interface, make configured user admin

This commit is contained in:
Jules Bertholet 2021-03-25 16:02:52 -04:00
parent 387af329ed
commit 64c340fe91
5 changed files with 10 additions and 12 deletions

View file

@ -24,7 +24,7 @@ This is the webservice powering the https://gpodder.net website. It can be used
## Configuration
Edit files under `/opt/yunohost/APPDIR/envs/prod` to set environment variables.
Edit files under `/opt/yunohost/APPDIR/envs/prod` to set environment variables. There is an admin interface at `yourdomain.tld/admin` that the admin user can log in to.
## Documentation

View file

@ -24,7 +24,7 @@ Ceci est le service derrière https://gpodder.net. Il peut servir pour synchroni
## Configuration
Modifiez les fichiers sous `/opt/yunohost/APPDIR/envs/prod` pour configurer les variables d'environment.
Modifiez les fichiers sous `/opt/yunohost/APPDIR/envs/prod` pour configurer les variables d'environment. Il y a une interface admin `a `votre-domaine.tld/admin` (seulement accessible par l'adminsitrateur).
## Documentation
@ -42,14 +42,7 @@ Modifiez les fichiers sous `/opt/yunohost/APPDIR/envs/prod` pour configurer les
## Limitations
* Limitations connues.
## Informations additionnelles
* Autres informations que vous souhaitez ajouter sur cette application.
**Plus d'informations sur la page de documentation :**
https://yunohost.org/packaging_apps
* Le service d'analyse de flux n'est pas inclu, https://feeds.gpodder.net est utilisé
## Liens

View file

@ -49,6 +49,10 @@ location /media/admin {
alias __FINALPATH__/venv/lib/python3.7/site-packages/django/contrib/admin/static/admin;
}
location /static/admin {
alias __FINALPATH__/venv/lib/python3.7/site-packages/django/contrib/admin/static/admin;
}
location ~ /(favicon.ico|favicon.png|robots.txt|clientconfig.json) {
expires 336h; # 2 weeks
}
}

View file

@ -6,7 +6,7 @@
"en": "Manage podcast subscriptions, and sync them between apps and devices",
"fr": "Gérez vos sousciptions balado, et sychronisez-lez entre vos applis et appareils"
},
"version": "2.11.1~ynh1",
"version": "2.11.1~ynh2",
"url": "https://github.com/gpodder/mygpo",
"license": "AGPL-3.0-only",
"maintainer": {

View file

@ -166,6 +166,7 @@ pushd $final_path || ynh_die
source $final_path/venv/bin/activate
envdir $env_path python3 $final_path/manage.py makemigrations
envdir $env_path python3 $final_path/manage.py migrate
envdir $env_path python3 $final_path/manage.py createsuperuser --username "$admin" --email "$admin_email" --noinput -v 0
deactivate 'dummy_arg'
popd || ynh_die