mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 08:11:14 +00:00
Merge branch 'main' of https://github.com/Websoft9/websoft9 into main
This commit is contained in:
commit
429066a6fe
|
@ -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>"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue