mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-15 02:58:22 +00:00
30 lines
626 B
Python
30 lines
626 B
Python
|
#!/usr/bin/env python3
|
||
|
# -*-coding:UTF-8 -*
|
||
|
|
||
|
import os
|
||
|
import sys
|
||
|
import time
|
||
|
import redis
|
||
|
import argparse
|
||
|
import datetime
|
||
|
import configparser
|
||
|
|
||
|
sys.path.append(os.path.join(os.environ['AIL_BIN'], 'lib/'))
|
||
|
import ConfigLoader
|
||
|
|
||
|
new_version = 'v3.1'
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
|
||
|
start_deb = time.time()
|
||
|
|
||
|
config_loader = ConfigLoader.ConfigLoader()
|
||
|
r_serv = config_loader.get_redis_conn("ARDB_DB")
|
||
|
config_loader = None
|
||
|
|
||
|
#Set current ail version
|
||
|
r_serv.set('ail:version', new_version)
|
||
|
|
||
|
#Set current ail version
|
||
|
r_serv.hset('ail:update_date', new_version, datetime.datetime.now().strftime("%Y%m%d"))
|