diff --git a/appmanage/Dockerfile b/appmanage/Dockerfile index ef28a3a5..d6cf741e 100644 --- a/appmanage/Dockerfile +++ b/appmanage/Dockerfile @@ -10,7 +10,7 @@ COPY static ./static COPY requirements.txt main.py ./ RUN apt update -# Install supervisord +# Install supervisords RUN apt install -y supervisor COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY config/cmd.sh /cmd.sh diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index 375579e3..dfd2d459 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -37,7 +37,7 @@ 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.from_crontab('36 * * * * *'), id='auto_update_job') +scheduler.add_job(auto_update, CronTrigger(hour=10, minute=42), id='auto_update_job') # 获取github文件内容 def get_github_content(repo, path):