Compare commits

..

1 Commits

Author SHA1 Message Date
Natalia Serrano 25cfb31725 refs #527 remove unused code 2024-08-21 14:44:30 +02:00
3 changed files with 3 additions and 16 deletions

View File

@ -7,7 +7,7 @@ port=8000
path=test_modules/server
# Remote OpenGnsys Service
remote=https://192.168.1.249/opengnsys/rest
remote=https://192.168.2.10/opengnsys/rest
# Alternate OpenGnsys Service (comment out to enable this option)
#altremote=https://10.0.2.2/opengnsys/rest
@ -23,11 +23,11 @@ log=DEBUG
[ogAdmClient]
#path=test_modules/server
## this URL will probably be left equal to the other one, but let's see
remote=https://192.168.1.249/opengnsys/rest/__ogAdmClient
remote=https://192.168.2.10/opengnsys/rest
log=DEBUG
#servidorAdm=192.168.2.1
#puerto=2008
pathinterface=/home/nati/Downloads/work/opengnsys/opengnsys/admin/Interface
pathinterface=/opt/opengnsys/interfaceAdm
urlMenu=https://192.168.2.1/opengnsys/varios/menubrowser.php
urlMsg=http://localhost/cgi-bin/httpd-log.sh

View File

@ -62,10 +62,7 @@ def check_secret(fnc):
return fnc(*args, **kwargs)
elif this.random == server.headers['Authorization']:
return fnc(*args, **kwargs)
elif 'letmein' == server.headers['Authorization']:
return fnc(*args, **kwargs)
else:
logger.debug ('nati check_secret 60 ({})==({})'.format (this.random, server.headers['Authorization']))
raise Exception('Unauthorized operation')
except Exception as e:
logger.error(str(e))

View File

@ -206,16 +206,6 @@ class ogAdmClientWorker(ServerWorker):
for I in /opt/opengnsys/lib/engine/bin/*.lib; do source $I; done;
for i in $(declare -F |cut -f3 -d" "); do export -f $i; done;
'''
## DO NOT COMMIT
if 'nati' == os.environ['USER'] or 'nati' == os.environ['SUDO_USER']:
devel_bash_prefix = '''
PATH=/home/nati/Downloads/work/opengnsys/opengnsys/client/shared/scripts:$PATH;
for I in /home/nati/Downloads/work/opengnsys/opengnsys/client/engine/*.lib; do source $I; done;
for i in $(declare -F |cut -f3 -d" "); do export -f $i; done;
'''
## /DO NOT COMMIT
if parametros:
proc = ['bash', '-c', '{} {} {}'.format (devel_bash_prefix, exe, ' '.join (parametros))]
else: