netbox/update_base.sh

13 lines
385 B
Bash
Raw Normal View History

2022-08-21 17:00:37 +00:00
#/usr/bin/env bash
set -e
source .env
rm -rf ${NETBOX_DATA}/{configuration,initializers,reports,scripts,startup_scripts}
mkdir -p ${NETBOX_DATA}
git clone https://github.com/netbox-community/netbox-docker.git
cd netbox-docker
git checkout ${NETBOX_DOCKER_VERSION}
cd ..
mv netbox-docker/{configuration,initializers,reports,scripts,startup_scripts} ${NETBOX_DATA}
rm -rf netbox-docker