mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 09:20:20 +08: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>"
|
||||
@ -56,4 +56,4 @@ VOLUME /websoft9/apphub/logs
|
||||
VOLUME /websoft9/apphub/src/config
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/websoft9/script/entrypoint.sh"]
|
||||
ENTRYPOINT ["/websoft9/script/entrypoint.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
|
||||
|
@ -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
|
||||
upgrade_zip
|
||||
|
Loading…
Reference in New Issue
Block a user