Skip to content

Agent Zero AI framework

torch version fix, cron chmod fix

frdel80abbdd301f0
diff --git a/docker/base/fs/ins/install_python.sh b/docker/base/fs/ins/install_python.sh
index 5a2c6f54b..30ebce38b 100644
--- a/docker/base/fs/ins/install_python.sh
+++ b/docker/base/fs/ins/install_python.sh
@@ -47,9 +47,8 @@ source /opt/venv/bin/activate
pip install --no-cache-dir --upgrade pip ipython requests
# Install some packages in specific variants
pip install --no-cache-dir \
- torch==2.4.0+cpu \
- torchvision==0.19.0+cpu \
- torchaudio==2.4.0+cpu \
+ torch==2.4.0 \
+ torchvision==0.19.0 \
--index-url https://download.pytorch.org/whl/cpu
echo "====================PYTHON UV ===================="
diff --git a/docker/run/fs/ins/pre_install.sh b/docker/run/fs/ins/pre_install.sh
index f1644c986..0b0c43195 100644
--- a/docker/run/fs/ins/pre_install.sh
+++ b/docker/run/fs/ins/pre_install.sh
@@ -1,8 +1,10 @@
#!/bin/bash
set -e
-# fix permissions for cron files
-chmod 0644 /etc/cron.d/*
+# fix permissions for cron files if any
+if [ -f /etc/cron.d/* ]; then
+ chmod 0644 /etc/cron.d/*
+fi
# Prepare SSH daemon
bash /ins/setup_ssh.sh "$@"