Merge branch 'main' of https://github.com/Websoft9/websoft9 into main

This commit is contained in:
qiaofeng1227 2023-11-14 14:13:49 +08:00
commit 429066a6fe
3 changed files with 5 additions and 3 deletions

View file

@ -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<help@websoft9.com>"

View file

@ -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

View file

@ -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