create the first user during installation in development mode

This commit is contained in:
Bence Pőcze 2021-04-29 20:02:00 +02:00
parent 7e68580db6
commit 70b60d2fb8
Signed by: bence
GPG Key ID: AA52B11A3269D1C1

View File

@ -27,6 +27,9 @@ if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
echo "Linking view files..."
(cd ${ROOT_DIR} && ./mapg view:link)
else
echo "Creating the first user..."
(cd ${ROOT_DIR} && ./mapg user:add mapg@mapg.dev 123456 admin)
fi
touch ${ROOT_DIR}/installed