ail-framework/update/v1.7/Update.py

27 lines
555 B
Python
Raw Normal View History

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