Better path fix

This commit is contained in:
2025-04-02 15:58:30 +00:00
parent ea22e1527e
commit ed37792b62
3 changed files with 19 additions and 9 deletions

View File

@@ -58,8 +58,18 @@ ln -s "/root/sia/web/dist" "/root/static"
# Install SIA dependencies
source "/root/sia/scripts/install.sh"
# Fix runpod environment so it doesn't reset PATH
sed -i '/^export PATH/d' /etc/rp_environment
# Add venvs to path in .bashrc
if ! grep -q "source /root/sia/scripts/add_venvs_to_path.sh" /root/.bashrc; then
echo 'source /root/sia/scripts/add_venvs_to_path.sh' >> /root/.bashrc
fi
# Add venvs to path in profile
if ! grep -q "source /root/sia/scripts/add_venvs_to_path.sh" /etc/profile; then
echo 'source /root/sia/scripts/add_venvs_to_path.sh' >> /etc/profile
fi
# Add venvs to path in current shell
source /root/sia/scripts/add_venvs_to_path.sh
## Finetune model
#echo "Finetuning model..."