Skip to content

Commit

Permalink
move docs to service as well
Browse files Browse the repository at this point in the history
  • Loading branch information
aptalca committed Aug 27, 2024
1 parent d175a8d commit b45c949
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 0 additions & 9 deletions root/etc/s6-overlay/s6-rc.d/init-netbox-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-netbox-prepare/run
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b45c949

Please sign in to comment.