Browse Source

default auto_update=False

qiaofeng1227 2 years ago
parent
commit
7a04663032
2 changed files with 3 additions and 3 deletions
  1. 1 1
      appmanage/Dockerfile
  2. 2 2
      appmanage/api/service/manage.py

+ 1 - 1
appmanage/Dockerfile

@@ -10,7 +10,7 @@ COPY static ./static
 COPY requirements.txt main.py  ./
 RUN apt update
 
-# Install supervisords
+# Install supervisord
 RUN apt install -y supervisor
 COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
 COPY config/cmd.sh /cmd.sh

+ 2 - 2
appmanage/api/service/manage.py

@@ -36,8 +36,8 @@ def auto_update():
     shell_execute.execute_command_output_all("wget https://websoft9.github.io/StackHub/install/update_appstore.sh && bash update_appstore.sh 1>/dev/null 2>&1")
 
 scheduler = BackgroundScheduler()
-#scheduler.add_job(auto_update, CronTrigger(hour=1, minute=0))
-scheduler.add_job(auto_update, CronTrigger(second='30'))
+scheduler.add_job(auto_update, CronTrigger(hour=1, minute=0))
+scheduler.shutdown()
 
 # 获取github文件内容
 def get_github_content(repo, path):