diff options
-rwxr-xr-x | entrypoint.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/entrypoint.sh b/entrypoint.sh index 6edba0f..89a6ee4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,16 +19,18 @@ case "${1}" in *) cd /newspipe git fetch || : ; - test -f instance/config.py && cp -pf instance/config.py instance/config.py1 + test -f instance/sqlite.py && cp -pf instance/sqlite.py instance/sqlite.py1 git checkout -f "${NEWSPIPE_BRANCH}" || { echo "Invalid branch ${NEWSPIPE_BRANCH}" 1>&2 ; exit 1 ; } git pull || : ; - test -f instance/config.py1 && mv -f instance/config.py1 instance/config.py + test -f instance/sqlite.py1 && mv -f instance/sqlite.py1 instance/sqlite.py _host="${1:-${NEWSPIPE_HOST}}" _port="${2:-${NEWSPIPE_PORT}}" set -x # If you need to add new pip packages quickly: #poetry run pip3 install dnspython poetry run flask db_init || : - poetry run flask run -h "${_host:-0.0.0.0}" -p "${_port:-8081}" + sleep 80000 + # and now connect to this container and run in bash: + # poetry run flask run -h "${_host:-0.0.0.0}" -p "${_port:-8081}" ;; esac |