From 8b1477a48260d8a6966808ce2775903443dfa7d4 Mon Sep 17 00:00:00 2001 From: dimon Date: Fri, 14 Nov 2025 21:43:40 +0000 Subject: [PATCH] Update setup_nautobot.sh --- setup_nautobot.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/setup_nautobot.sh b/setup_nautobot.sh index bb9df89..132e94e 100644 --- a/setup_nautobot.sh +++ b/setup_nautobot.sh @@ -3,7 +3,17 @@ sh /setup_programs.sh # Setup environment -apt install -y git python3 python3-pip +apt install -y python3 python3.10-venv python3-pip # Create user useradd --system --shell /bin/bash --create-home --home-dir /opt/nautobot nautobot +chown nautobot /opt/nautobot + +# Create the Virtual Environment +su -c "python3 -m venv /opt/nautobot/" nautobot + +# Add NAUTOBOT_ROOT to the nautobot user .bashrc file +echo "export NAUTOBOT_ROOT=/opt/nautobot" | tee -a ~nautobot/.bashrc + +# Update Python Pip and Wheel +su -c "pip3 install --upgrade pip wheel" nautobot \ No newline at end of file