This commit is contained in:
qiaofeng1227 2023-07-28 17:09:39 +08:00
parent cfc4a607ee
commit 28e40c5ccb
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -84,7 +84,9 @@ def AppStoreCore():
least_version = json.loads(latest)['Requires at least']
now = shell_execute.execute_command_output_all("cat /data/apps/websoft9/version.json")['result']
now_version = json.loads(now)['VERSION']
if now_version >= least_version and now_version <= most_version:
version_str = "now_version:" + now_version + " least_version:" + least_version + " most_version:" + most_version
myLogger.info_logger(version_str)
if float(now_version) >= float(least_version) and float(now_version) <= float(most_version):
return "0"
elif now_version < least_version:
return "-1"