diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-netbox-slurpit-install/run b/root/etc/s6-overlay/s6-rc.d/init-mod-netbox-slurpit-install/run index de8dee2e..5590d7dd 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-mod-netbox-slurpit-install/run +++ b/root/etc/s6-overlay/s6-rc.d/init-mod-netbox-slurpit-install/run @@ -23,3 +23,17 @@ else: fi fi +#!/usr/bin/with-contenv bash + +if ! pip list 2> /dev/null | grep -q "slurpit_netbox"; then + echo "**** Adding slurpit_netbox and their deps to package install lists ****" + echo "\ + setuptools" >> /mod-pip-packages-to-install.list + if [ $(arch) = "x86_64" ]; then + echo "setuptools" >> /mod-pip-packages-to-install.list + fi + echo "\ + slurpit_netbox" >> /mod-pip-packages-to-install.list +else + echo "**** slurpit_netbox already installed, skipping ****" +fi