mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-31 22:20:12 +00:00
13 lines
371 B
Python
Executable file
13 lines
371 B
Python
Executable file
#!/srv/newsblur/venv/newsblur3/bin/python
|
|
import sys
|
|
|
|
sys.path.append("/srv/newsblur")
|
|
from newsblur_web import settings
|
|
|
|
username = settings.DATABASES["default"]["USER"]
|
|
password = settings.DATABASES["default"]["PASSWORD"]
|
|
|
|
if sys.argv[1] == "postgres_credentials":
|
|
print(f"{username}:{password}")
|
|
if sys.argv[1] == "s3_bucket":
|
|
print(settings.S3_BACKUP_BUCKET)
|