You've already forked netbox
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5f09b5fd2c | |||
35ae265805 |
@@ -120,6 +120,13 @@ services:
|
||||
- POSTGRES_DB=${PSQL_NAME}
|
||||
- POSTGRES_USER=${PSQL_USER}
|
||||
- POSTGRES_PASSWORD=${PSQL_PASS}
|
||||
labels:
|
||||
### Section DIUN
|
||||
- diun.enable=${DIUN_ENABLE}
|
||||
- diun.watch_repo=${DIUN_WATCHREPO}
|
||||
- diun.sort_tags=${DIUN_SORTALGO}
|
||||
- diun.include_tags=${DIUN_INCLUDE}
|
||||
- diun.exclude_tags=${DIUN_EXCLUDE}
|
||||
networks:
|
||||
- internal
|
||||
volumes:
|
||||
@@ -134,6 +141,13 @@ services:
|
||||
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD
|
||||
environment:
|
||||
- REDIS_PASSWORD=${REDIS_PASS}
|
||||
labels:
|
||||
### Section DIUN
|
||||
- diun.enable=${DIUN_ENABLE}
|
||||
- diun.watch_repo=${DIUN_WATCHREPO}
|
||||
- diun.sort_tags=${DIUN_SORTALGO}
|
||||
- diun.include_tags=${DIUN_INCLUDE}
|
||||
- diun.exclude_tags=${DIUN_EXCLUDE}
|
||||
networks:
|
||||
- internal
|
||||
volumes:
|
||||
|
14
post-installation.sh
Executable file
14
post-installation.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# Search or ask for .env file
|
||||
ENV_FILE=".env"
|
||||
while [ ! -f "${ENV_FILE}" ]; do
|
||||
read -p "\"${ENV_FILE}\" file does not exist, please type your env file: " ENV_FILE
|
||||
done
|
||||
|
||||
# Disable superuser config in environment variable, it's now in the database
|
||||
sed -i "s/NETBOX_SUPERUSER_EMAIL=.*/NETBOX_SUPERUSER_EMAIL=/" "${ENV_FILE}"
|
||||
sed -i "s/NETBOX_SUPERUSER_NAME=.*/NETBOX_SUPERUSER_NAME=/" "${ENV_FILE}"
|
||||
sed -i "s/NETBOX_SUPERUSER_PASS=.*/NETBOX_SUPERUSER_PASS=/" "${ENV_FILE}"
|
||||
sed -i "s/NETBOX_SKIP_SUPERUSER=/NETBOX_SKIP_SUPERUSER=true/" "${ENV_FILE}"
|
Reference in New Issue
Block a user