2019-05-20 14:48:20 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*-coding:UTF-8 -*
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import time
|
|
|
|
import datetime
|
2019-11-05 15:18:03 +01:00
|
|
|
|
2022-11-23 11:02:33 +01:00
|
|
|
sys.path.append(os.environ['AIL_BIN'])
|
|
|
|
from lib import ConfigLoader
|
2019-05-20 14:48:20 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
|
|
|
start_deb = time.time()
|
|
|
|
|
2019-11-05 15:18:03 +01:00
|
|
|
config_loader = ConfigLoader.ConfigLoader()
|
|
|
|
|
|
|
|
r_serv = config_loader.get_redis_conn("ARDB_DB")
|
|
|
|
config_loader = None
|
2019-05-20 14:48:20 +02:00
|
|
|
|
2022-11-23 11:02:33 +01:00
|
|
|
# Set current ail version
|
2019-05-20 14:48:20 +02:00
|
|
|
r_serv.set('ail:version', 'v1.7')
|
|
|
|
|
2022-11-23 11:02:33 +01:00
|
|
|
# Set current ail version
|
2019-05-20 14:48:20 +02:00
|
|
|
r_serv.set('ail:update_date_v1.7', datetime.datetime.now().strftime("%Y%m%d"))
|