Better path fix
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user