qiaofeng1227 пре 2 година
родитељ
комит
81cb525864
2 измењених фајлова са 4 додато и 2 уклоњено
  1. 1 1
      appmanage/Dockerfile
  2. 3 1
      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

+ 3 - 1
appmanage/api/service/manage.py

@@ -88,7 +88,9 @@ def AppStoreUpdate():
         for change in change_log[1:]:
             if change != '':
                 content.append(change)
-        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")
+        shell_execute.execute_command_output_all("rm -rf /tmp/update_appstore.sh")
+        shell_execute.execute_command_output_all("cd /tmp && wget https://websoft9.github.io/StackHub/install/update_appstore.sh")
+        shell_execute.execute_command_output_all("bash /tmp/update_appstore.sh 1>/dev/null 2>&1")
         
         return content
     else: