Skip to content
Snippets Groups Projects
Commit 79e2b12a authored by Florent Thiery's avatar Florent Thiery
Browse files

use BACKUP_SERVER instead of BURP_SERVER (deprecated) refs #20367

parent 79cdb011
No related branches found
No related tags found
No related merge requests found
...@@ -108,6 +108,9 @@ BURP_MAIL_DEST='sysadmin@ubicast.eu' ...@@ -108,6 +108,9 @@ BURP_MAIL_DEST='sysadmin@ubicast.eu'
BURP_CLIENT_NAME= BURP_CLIENT_NAME=
BURP_CLIENT_MAIL_DEST='sysadmin@ubicast.eu' BURP_CLIENT_MAIL_DEST='sysadmin@ubicast.eu'
# -- tmbackup
BACKUP_SERVER=''
# -- FTP -- # -- FTP --
# move uploaded files into hotfolder # move uploaded files into hotfolder
# login:pass CSV separated # login:pass CSV separated
......
...@@ -71,21 +71,21 @@ os.chdir(os.path.dirname(__file__)) ...@@ -71,21 +71,21 @@ os.chdir(os.path.dirname(__file__))
if os.path.isfile('../utils.py'): if os.path.isfile('../utils.py'):
es_utils = imp.load_source('es_utils', '../utils.py') es_utils = imp.load_source('es_utils', '../utils.py')
conf = es_utils.load_conf() conf = es_utils.load_conf()
BURP_SERVER = conf.get('BURP_SERVER') BACKUP_SERVER = conf.get('BACKUP_SERVER')
if BURP_SERVER: if BACKUP_SERVER:
if not test_ssh(BURP_SERVER): if not test_ssh(BACKUP_SERVER):
print('Failed to ssh into backup server') print('Failed to ssh into backup server')
sys.exit(1) sys.exit(1)
else: else:
if not test_last_backup_is_recent(BURP_SERVER): if not test_last_backup_is_recent(BACKUP_SERVER):
sys.exit(1) sys.exit(1)
else: else:
if not test_backup_space(BURP_SERVER): if not test_backup_space(BACKUP_SERVER):
sys.exit(1) sys.exit(1)
else: else:
sys.exit(0) sys.exit(0)
else: else:
print('No BURP_SERVER defined in config, untestable') print('No BACKUP_SERVER defined in config, untestable')
sys.exit(2) sys.exit(2)
else: else:
print('Unable to load config, untestable') print('Unable to load config, untestable')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment