summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/netbox/files')
-rw-r--r--www-apps/netbox/files/gunicorn_config.py5
-rw-r--r--www-apps/netbox/files/netbox-2.6.7-no-pip.patch32
-rw-r--r--www-apps/netbox/files/netbox-rqworker.initd13
-rw-r--r--www-apps/netbox/files/netbox.initd12
4 files changed, 0 insertions, 62 deletions
diff --git a/www-apps/netbox/files/gunicorn_config.py b/www-apps/netbox/files/gunicorn_config.py
deleted file mode 100644
index 4cb7111fac44..000000000000
--- a/www-apps/netbox/files/gunicorn_config.py
+++ /dev/null
@@ -1,5 +0,0 @@
-command = '/usr/bin/gunicorn'
-pythonpath = '/opt/netbox/netbox'
-bind = '127.0.0.1:8001'
-workers = 3
-user = 'netbox'
diff --git a/www-apps/netbox/files/netbox-2.6.7-no-pip.patch b/www-apps/netbox/files/netbox-2.6.7-no-pip.patch
deleted file mode 100644
index a47e151c0842..000000000000
--- a/www-apps/netbox/files/netbox-2.6.7-no-pip.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff --git a/upgrade.sh b/upgrade.sh
-index d17dec06..6972ed2f 100755
---- a/upgrade.sh
-+++ b/upgrade.sh
-@@ -10,27 +10,6 @@ cd "$(dirname "$0")"
- PYTHON="python3"
- PIP="pip3"
-
--# Uninstall any Python packages which are no longer needed
--COMMAND="${PIP} uninstall -r old_requirements.txt -y"
--echo "Removing old Python packages ($COMMAND)..."
--eval $COMMAND
--
--# Install any new Python packages
--COMMAND="${PIP} install -r requirements.txt --upgrade"
--echo "Updating required Python packages ($COMMAND)..."
--eval $COMMAND
--
--# Validate Python dependencies
--COMMAND="${PIP} check"
--echo "Validating Python dependencies ($COMMAND)..."
--eval $COMMAND || (
-- echo "******** PLEASE FIX THE DEPENDENCIES BEFORE CONTINUING ********"
-- echo "* Manually install newer version(s) of the highlighted packages"
-- echo "* so that 'pip3 check' passes. For more information see:"
-- echo "* https://github.com/pypa/pip/issues/988"
-- exit 1
--)
--
- # Apply any database migrations
- COMMAND="${PYTHON} netbox/manage.py migrate"
- echo "Applying database migrations ($COMMAND)..."
diff --git a/www-apps/netbox/files/netbox-rqworker.initd b/www-apps/netbox/files/netbox-rqworker.initd
deleted file mode 100644
index 54794f26fb90..000000000000
--- a/www-apps/netbox/files/netbox-rqworker.initd
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2019 Sony Interactive Entertainment Inc.
-# Distributed under the terms of the GNU General Public License v2
-
-name="netbox-rqworker daemon"
-description="nnetbox-rqworker daemon"
-command=/usr/bin/python3
-command_args="/opt/netbox/netbox/manage.py rqworker"
-command_user=netbox:netbox
-directory=/opt/netbox/netbox
-error_log=/var/log/netbox/netbox-rcworker.log
-output_log=/var/log/netbox/"${RC_SVCNAME}".log
-supervisor=supervise-daemon
diff --git a/www-apps/netbox/files/netbox.initd b/www-apps/netbox/files/netbox.initd
deleted file mode 100644
index 74e6c3b717fb..000000000000
--- a/www-apps/netbox/files/netbox.initd
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2019 Sony Interactive Entertainment Inc.
-# Distributed under the terms of the GNU General Public License v2
-
-description="netbox daemon"
-command=/usr/bin/gunicorn
-command_args="-c /etc/netbox/gunicorn_config.py netbox.wsgi"
-command_user=netbox:netbox
-directory=/opt/netbox/netbox
-error_log=/var/log/netbox/"${RC_SVCNAME}".log
-output_log=/var/log/netbox/"${RC_SVCNAME}".log
-supervisor=supervise-daemon