Test
This commit is contained in:
parent
2c9afae4d5
commit
b164162f3d
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
export GITEA__database__DB_TYPE=postgres
|
||||||
export GITEA__database__DB_TYPE=${DATABASE_URL%%:*}
|
export GITEA__database__DB_TYPE=${DATABASE_URL%%:*}
|
||||||
export GITEA__database__USER=$(echo ${DATABASE_URL} | sed -r "s|.*://([^:]+):.*|\1|")
|
export GITEA__database__USER=$(echo ${DATABASE_URL} | sed -r "s|.*://([^:]+):.*|\1|")
|
||||||
export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^@]+)@.*|\1|")
|
export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^@]+)@.*|\1|")
|
||||||
|
Loading…
Reference in New Issue
Block a user