Skip to content

Commit b45c949

Browse files
committed
move docs to service as well
1 parent d175a8d commit b45c949

File tree

2 files changed

+12
-9
lines changed
  • root/etc/s6-overlay/s6-rc.d
    • init-netbox-config
    • svc-netbox-prepare

2 files changed

+12
-9
lines changed

root/etc/s6-overlay/s6-rc.d/init-netbox-config/run

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,6 @@ ln -sf /config/ldap_config.py /app/netbox/netbox/netbox/ldap_config.py
5252

5353
mv /defaults/uwsgi.ini /app/netbox/netbox/uwsgi.ini > /dev/null 2>&1
5454

55-
# build docs
56-
if [[ ! -e "/app/netbox/netbox/project-static/docs/index.html" ]]; then
57-
cd /app/netbox || exit 1
58-
echo "Building local documentation"
59-
mkdocs build -q
60-
cd /app/netbox/netbox || exit 1
61-
fi
62-
6355
# permissions
6456
lsiown -R abc:abc \
65-
/app/netbox/netbox/static \
6657
/config

root/etc/s6-overlay/s6-rc.d/svc-netbox-prepare/run

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,15 @@ else:
2020
print('Superuser creation skipped. Already exists.');
2121
EOF
2222
fi
23+
24+
# build docs
25+
if [[ ! -e "/app/netbox/netbox/project-static/docs/index.html" ]]; then
26+
cd /app/netbox || exit 1
27+
echo "Building local documentation"
28+
mkdocs build -q
29+
cd /app/netbox/netbox || exit 1
30+
fi
31+
32+
# permissions
33+
lsiown -R abc:abc \
34+
/app/netbox/netbox/static

0 commit comments

Comments
 (0)