Do it manually once more
This commit is contained in:
parent
61f53bbb7e
commit
c2f26be35e
@ -11,7 +11,7 @@ setup_db() {
|
|||||||
setup_root_user() {
|
setup_root_user() {
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
user_count=$(sqlite3 /data/gitea.db "SELECT count(*) FROM USER;")
|
user_count=$(sqlite3 /data/gitea.db "select count(*) from user;")
|
||||||
|
|
||||||
if [[ "${user_count}" == "0" ]]; then
|
if [[ "${user_count}" == "0" ]]; then
|
||||||
echo "==> Setting up root user for first run"
|
echo "==> Setting up root user for first run"
|
||||||
@ -32,4 +32,4 @@ main() {
|
|||||||
setup_root_user
|
setup_root_user
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
# main
|
||||||
|
Reference in New Issue
Block a user