Update INSTALL.sh

This commit is contained in:
Stefan Pejcic 2024-05-28 10:18:05 +02:00 committed by GitHub
parent 1f21ed5b95
commit 4dbedcf2a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -947,6 +947,11 @@ setup_openadmin() {
password_hash=$(python3 ${OPENPADMIN_DIR}core/users/hash $admin_password)
debug_log sqlite3 ${OPENPADMIN_DIR}users.db "CREATE TABLE IF NOT EXISTS user (id INTEGER PRIMARY KEY, username TEXT UNIQUE NOT NULL, password_hash TEXT NOT NULL, role TEXT NOT NULL DEFAULT 'user', is_active BOOLEAN DEFAULT 1 NOT NULL);" "INSERT INTO user (username, password_hash, role) VALUES ('admin', \"$password_hash\", 'admin');"
# added in 0.1.9
cp helpers/welcome.sh /etc/profile.d/welcome.sh
chmod +x /etc/profile.d/welcome.sh
}