mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-08 18:47:39 +02:00
update 6.2.6
This commit is contained in:
+5
-4
@@ -59,7 +59,6 @@ class bt_task:
|
||||
if type(data) == str:
|
||||
public.WriteLog('Task queue',data)
|
||||
return []
|
||||
|
||||
if not 'num' in get: get.num = 15
|
||||
num = int(get.num)
|
||||
for i in range(len(data)):
|
||||
@@ -160,11 +159,14 @@ class bt_task:
|
||||
#开始检测任务
|
||||
def start_task(self):
|
||||
noe = False
|
||||
while True:
|
||||
n = 0
|
||||
while True:
|
||||
try:
|
||||
time.sleep(1);
|
||||
if not os.path.exists(self.__task_tips) and noe: continue;
|
||||
n+=1
|
||||
if not os.path.exists(self.__task_tips) and noe and n < 60: continue;
|
||||
if os.path.exists(self.__task_tips): os.remove(self.__task_tips)
|
||||
n = 0
|
||||
public.M(self.__table).where('status=?',('-1',)).setField('status',0)
|
||||
task_list = self.get_task_list(0)
|
||||
for task_info in task_list:
|
||||
@@ -385,7 +387,6 @@ class bt_task:
|
||||
os.system('chown -R www:www ' + filename)
|
||||
# os.system('chmod -R 755 ' + filename)
|
||||
a = 'find {filename} -type d |xargs chmod 0755'.format(filename=filename)
|
||||
public.writeFile("/tmp/2",str(a))
|
||||
os.system(a)
|
||||
os.system('find {filename} -type f |xargs chmod 0644'.format(filename=filename))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user