Update setup_nautobot.sh
This commit is contained in:
parent
1953b098f1
commit
8b1477a482
@ -3,7 +3,17 @@
|
|||||||
sh /setup_programs.sh
|
sh /setup_programs.sh
|
||||||
|
|
||||||
# Setup environment
|
# Setup environment
|
||||||
apt install -y git python3 python3-pip
|
apt install -y python3 python3.10-venv python3-pip
|
||||||
|
|
||||||
# Create user
|
# Create user
|
||||||
useradd --system --shell /bin/bash --create-home --home-dir /opt/nautobot nautobot
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user