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:
parent
387af329ed
commit
64c340fe91
5 changed files with 10 additions and 12 deletions
|
@ -24,7 +24,7 @@ This is the webservice powering the https://gpodder.net website. It can be used
|
||||||
|
|
||||||
## Configuration
|
## 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
|
## Documentation
|
||||||
|
|
||||||
|
|
11
README_fr.md
11
README_fr.md
|
@ -24,7 +24,7 @@ Ceci est le service derrière https://gpodder.net. Il peut servir pour synchroni
|
||||||
|
|
||||||
## Configuration
|
## 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
|
## Documentation
|
||||||
|
|
||||||
|
@ -42,14 +42,7 @@ Modifiez les fichiers sous `/opt/yunohost/APPDIR/envs/prod` pour configurer les
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
|
||||||
* Limitations connues.
|
* Le service d'analyse de flux n'est pas inclu, https://feeds.gpodder.net est utilisé
|
||||||
|
|
||||||
## Informations additionnelles
|
|
||||||
|
|
||||||
* Autres informations que vous souhaitez ajouter sur cette application.
|
|
||||||
|
|
||||||
**Plus d'informations sur la page de documentation :**
|
|
||||||
https://yunohost.org/packaging_apps
|
|
||||||
|
|
||||||
## Liens
|
## Liens
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,10 @@ location /media/admin {
|
||||||
alias __FINALPATH__/venv/lib/python3.7/site-packages/django/contrib/admin/static/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) {
|
location ~ /(favicon.ico|favicon.png|robots.txt|clientconfig.json) {
|
||||||
expires 336h; # 2 weeks
|
expires 336h; # 2 weeks
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Manage podcast subscriptions, and sync them between apps and devices",
|
"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"
|
"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",
|
"url": "https://github.com/gpodder/mygpo",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -166,6 +166,7 @@ pushd $final_path || ynh_die
|
||||||
source $final_path/venv/bin/activate
|
source $final_path/venv/bin/activate
|
||||||
envdir $env_path python3 $final_path/manage.py makemigrations
|
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 migrate
|
||||||
|
envdir $env_path python3 $final_path/manage.py createsuperuser --username "$admin" --email "$admin_email" --noinput -v 0
|
||||||
deactivate 'dummy_arg'
|
deactivate 'dummy_arg'
|
||||||
popd || ynh_die
|
popd || ynh_die
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue