diff --git a/samples/tisbackup_gui.ini b/samples/tisbackup_gui.ini index e679553..fb9e2a5 100644 --- a/samples/tisbackup_gui.ini +++ b/samples/tisbackup_gui.ini @@ -1,10 +1,4 @@ -[uwsgi] -http = 0.0.0.0:8080 -master = true -processes = 1 -wsgi=tisbackup_gui:app -chdir=/opt/tisbackup +[general] config_tisbackup= /etc/tis/tisbackup-config.ini sections= -spooler=/opt/tisbackup/myspool ADMIN_EMAIL=technique@tranquil-it-systems.fr diff --git a/tisbackup_gui.py b/tisbackup_gui.py index 3de324a..6934e2f 100755 --- a/tisbackup_gui.py +++ b/tisbackup_gui.py @@ -43,9 +43,9 @@ import re cp = ConfigParser() cp.read("/etc/tis/tisbackup_gui.ini") -CONFIG = cp.get('uwsgi','config_tisbackup').split(",") -SECTIONS = cp.get('uwsgi','sections') -ADMIN_EMAIL = cp.get('uwsgi','ADMIN_EMAIL') +CONFIG = cp.get('general','config_tisbackup').split(",") +SECTIONS = cp.get('general','sections') +ADMIN_EMAIL = cp.get('general','ADMIN_EMAIL') tisbackup_config_file= CONFIG[0] config_number=0