mirror of
https://github.com/linuxserver/docker-netbox.git
synced 2026-02-20 08:40:10 +08:00
move docs to service as well
This commit is contained in:
parent
d175a8dea4
commit
b45c949faa
@ -52,15 +52,6 @@ ln -sf /config/ldap_config.py /app/netbox/netbox/netbox/ldap_config.py
|
||||
|
||||
mv /defaults/uwsgi.ini /app/netbox/netbox/uwsgi.ini > /dev/null 2>&1
|
||||
|
||||
# build docs
|
||||
if [[ ! -e "/app/netbox/netbox/project-static/docs/index.html" ]]; then
|
||||
cd /app/netbox || exit 1
|
||||
echo "Building local documentation"
|
||||
mkdocs build -q
|
||||
cd /app/netbox/netbox || exit 1
|
||||
fi
|
||||
|
||||
# permissions
|
||||
lsiown -R abc:abc \
|
||||
/app/netbox/netbox/static \
|
||||
/config
|
||||
|
||||
@ -20,3 +20,15 @@ else:
|
||||
print('Superuser creation skipped. Already exists.');
|
||||
EOF
|
||||
fi
|
||||
|
||||
# build docs
|
||||
if [[ ! -e "/app/netbox/netbox/project-static/docs/index.html" ]]; then
|
||||
cd /app/netbox || exit 1
|
||||
echo "Building local documentation"
|
||||
mkdocs build -q
|
||||
cd /app/netbox/netbox || exit 1
|
||||
fi
|
||||
|
||||
# permissions
|
||||
lsiown -R abc:abc \
|
||||
/app/netbox/netbox/static
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user