网站统计 x18
This commit is contained in:
parent
1fdc8e3b6e
commit
3c848efd58
|
|
@ -5,8 +5,8 @@
|
|||
"name": "php",
|
||||
"title": "PHP",
|
||||
"coexist": true,
|
||||
"versions": ["52","53","54","55","56","70","71","72","73","74","80","81","82"],
|
||||
"updates": ["5.2.17","5.3.29","5.4.45","5.6.36","7.0.30","7.1.33","7.2.32","7.3.20","7.4.30","8.0.30","8.1.8","8.2.0"],
|
||||
"versions": ["53","54","55","56","70","71","72","73","74","80","81","82"],
|
||||
"updates": ["5.3.29","5.4.45","5.6.36","7.0.30","7.1.33","7.2.32","7.3.20","7.4.30","8.0.30","8.1.8","8.2.0"],
|
||||
"tip": "soft",
|
||||
"install_pre_inspection":true,
|
||||
"checks": "server/php/VERSION/bin/php",
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ for PHP_VER in ${PHP_VER_LIST[@]}; do
|
|||
done
|
||||
|
||||
cd $DIR
|
||||
PHP_VER_LIST=(52 53 54 55 56 70 71 72 73 74 80 81 82)
|
||||
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81 82)
|
||||
PHP_EXT_LIST=(ioncube ZendGuardLoader pdo mysqlnd sqlite3 openssl pcntl opcache mcrypt fileinfo \
|
||||
exif gd intl memcache memcached redis imagemagick xdebug xhprof \
|
||||
swoole yaf yar yac apc mongo mongodb solr seaslog mbstring iconv)
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ def getConfigData():
|
|||
"task_id": -1,
|
||||
"task_list": ["migrate_hot_logs"],
|
||||
"default_execute_hour": 3,
|
||||
"default_execute_minute": 10,
|
||||
"default_execute_minute": 15,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ def createBgTask():
|
|||
'week': "",
|
||||
'where1': "",
|
||||
'hour': cfg['default_execute_hour'],
|
||||
'minute': cfg['default_execute_hour'],
|
||||
'minute': cfg['default_execute_minute'],
|
||||
'save': "",
|
||||
'backup_to': "",
|
||||
'stype': "toShell",
|
||||
|
|
@ -117,8 +117,24 @@ def removeBgTask():
|
|||
|
||||
|
||||
def execute():
|
||||
print("helo")
|
||||
|
||||
try:
|
||||
import time
|
||||
now = time.strftime("%Y-%m-%d", time.localtime())
|
||||
print("-" * 30)
|
||||
cfg = getConfigData()
|
||||
task_list = cfg["task_list"]
|
||||
for task in task_list:
|
||||
if task == "migrate_hot_logs":
|
||||
try:
|
||||
from tool_migrate import tool_migrate
|
||||
tm = tool_migrate()
|
||||
tm.migrate_hot_logs("yesterday")
|
||||
except:
|
||||
pass
|
||||
print(now)
|
||||
print("-" * 30)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) > 1:
|
||||
|
|
|
|||
Loading…
Reference in New Issue