2021-03-23 14:57:51 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*-coding:UTF-8 -*
|
|
|
|
|
|
|
|
import os
|
|
|
|
import re
|
|
|
|
import sys
|
|
|
|
import time
|
|
|
|
import redis
|
|
|
|
import datetime
|
|
|
|
|
|
|
|
sys.path.append(os.path.join(os.environ['AIL_BIN'], 'lib/'))
|
|
|
|
import ConfigLoader
|
|
|
|
|
2021-04-14 14:27:39 +00:00
|
|
|
sys.path.append(os.path.join(os.environ['AIL_HOME'], 'update', 'bin'))
|
|
|
|
from ail_updater import AIL_Updater
|
2021-03-23 14:57:51 +00:00
|
|
|
|
2021-04-14 14:27:39 +00:00
|
|
|
class Updater(AIL_Updater):
|
|
|
|
"""default Updater."""
|
2021-03-23 14:57:51 +00:00
|
|
|
|
2021-04-14 14:27:39 +00:00
|
|
|
def __init__(self, version):
|
|
|
|
super(Updater, self).__init__(version)
|
2021-03-23 14:57:51 +00:00
|
|
|
|
2021-04-14 14:27:39 +00:00
|
|
|
if __name__ == '__main__':
|
2021-03-23 14:57:51 +00:00
|
|
|
|
2021-04-14 14:27:39 +00:00
|
|
|
updater = Updater('v3.5')
|
|
|
|
updater.run_update()
|