13 lines
385 B
Bash
13 lines
385 B
Bash
|
#/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
|