网站统计 x18

pull/139/head
midoks 3 years ago
parent 1fdc8e3b6e
commit 3c848efd58
  1. 4
      plugins/php/info.json
  2. 2
      plugins/php/versions/all_test.sh
  3. 24
      plugins/webstats/tool_task.py

@ -5,8 +5,8 @@
"name": "php", "name": "php",
"title": "PHP", "title": "PHP",
"coexist": true, "coexist": true,
"versions": ["52","53","54","55","56","70","71","72","73","74","80","81","82"], "versions": ["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"], "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", "tip": "soft",
"install_pre_inspection":true, "install_pre_inspection":true,
"checks": "server/php/VERSION/bin/php", "checks": "server/php/VERSION/bin/php",

@ -37,7 +37,7 @@ for PHP_VER in ${PHP_VER_LIST[@]}; do
done done
cd $DIR 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 \ PHP_EXT_LIST=(ioncube ZendGuardLoader pdo mysqlnd sqlite3 openssl pcntl opcache mcrypt fileinfo \
exif gd intl memcache memcached redis imagemagick xdebug xhprof \ exif gd intl memcache memcached redis imagemagick xdebug xhprof \
swoole yaf yar yac apc mongo mongodb solr seaslog mbstring iconv) swoole yaf yar yac apc mongo mongodb solr seaslog mbstring iconv)

@ -56,7 +56,7 @@ def getConfigData():
"task_id": -1, "task_id": -1,
"task_list": ["migrate_hot_logs"], "task_list": ["migrate_hot_logs"],
"default_execute_hour": 3, "default_execute_hour": 3,
"default_execute_minute": 10, "default_execute_minute": 15,
} }
@ -83,7 +83,7 @@ def createBgTask():
'week': "", 'week': "",
'where1': "", 'where1': "",
'hour': cfg['default_execute_hour'], 'hour': cfg['default_execute_hour'],
'minute': cfg['default_execute_hour'], 'minute': cfg['default_execute_minute'],
'save': "", 'save': "",
'backup_to': "", 'backup_to': "",
'stype': "toShell", 'stype': "toShell",
@ -117,8 +117,24 @@ def removeBgTask():
def execute(): 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 __name__ == "__main__":
if len(sys.argv) > 1: if len(sys.argv) > 1:

Loading…
Cancel
Save