diff --git a/docker/apphub/Dockerfile b/docker/apphub/Dockerfile index 78afda58..3acb5bfa 100644 --- a/docker/apphub/Dockerfile +++ b/docker/apphub/Dockerfile @@ -1,4 +1,4 @@ -# modify time: 202311081540, you can modify here to trigger Docker Build action +# modify time: 202311131740, you can modify here to trigger Docker Build action FROM python:3.10-slim-bullseye LABEL maintainer="Websoft9" @@ -56,4 +56,4 @@ VOLUME /websoft9/apphub/logs VOLUME /websoft9/apphub/src/config EXPOSE 8080 -ENTRYPOINT ["/websoft9/script/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/websoft9/script/entrypoint.sh"] diff --git a/install/install_plugins.sh b/install/install_plugins.sh index 8e105ef7..0da9be8a 100644 --- a/install/install_plugins.sh +++ b/install/install_plugins.sh @@ -58,6 +58,7 @@ then echo "Python 3 is not installed. Installing..." sudo yum install -y python3 &> /dev/null || sudo apt update -y && sudo apt install -y python3 &> /dev/null fi + for module in "${modules[@]}" do python3 -c "import $module" &> /dev/null diff --git a/scripts/update_zip.sh b/scripts/update_zip.sh index 2e3ca137..62c2031e 100644 --- a/scripts/update_zip.sh +++ b/scripts/update_zip.sh @@ -62,6 +62,7 @@ upgrade_zip() { # Download the package using wget while [ $attempts -lt $max_attempts ]; do + rm -f "/tmp/$package_name" wget --timeout=120 --no-clobber "$url" -O "/tmp/$package_name" # Check if the download was successful if [ $? -eq 0 ]; then @@ -115,4 +116,4 @@ upgrade_zip() { return 0 } -upgrade_zip \ No newline at end of file +upgrade_zip