package(tubesync): add tubesync application and module
This commit is contained in:
parent
be583ed13b
commit
5a71752aa0
5 changed files with 356 additions and 0 deletions
16
package/tubesync/state-dir-env.patch
Normal file
16
package/tubesync/state-dir-env.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
diff --git a/tubesync/tubesync/local_settings.py.container b/tubesync/tubesync/local_settings.py.container
|
||||
index a7a07ab..9207c7f 100644
|
||||
--- a/tubesync/tubesync/local_settings.py.container
|
||||
+++ b/tubesync/tubesync/local_settings.py.container
|
||||
@@ -6,9 +6,8 @@ from common.utils import parse_database_connection_string
|
||||
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
-ROOT_DIR = Path('/')
|
||||
-CONFIG_BASE_DIR = ROOT_DIR / 'config'
|
||||
-DOWNLOADS_BASE_DIR = ROOT_DIR / 'downloads'
|
||||
+CONFIG_BASE_DIR = Path(os.getenv('CONFIG_BASE_DIR', "/var/lib/tubesync"))
|
||||
+DOWNLOADS_BASE_DIR = Path(os.getenv('DOWNLOADS_BASE_DIR', f"{CONFIG_BASE_DIR}/downloads"))
|
||||
DJANGO_URL_PREFIX = os.getenv('DJANGO_URL_PREFIX', None)
|
||||
STATIC_URL = str(os.getenv('DJANGO_STATIC_URL', '/static/'))
|
||||
if DJANGO_URL_PREFIX and STATIC_URL:
|
Loading…
Add table
Add a link
Reference in a new issue