Fixed api user in baserow.sh

This commit is contained in:
Derek Crudgington 2023-02-03 13:50:21 +00:00
parent 3d081ed5f6
commit fda5b6ba4c
2 changed files with 2 additions and 8 deletions

View File

@ -64,8 +64,8 @@ cat > /federated/apps/baserow/data/createuser.sh <<EOF
#!/bin/bash #!/bin/bash
curl -X POST -H 'Content-Type: application/json' -i http://localhost/api/user/ --data '{ curl -X POST -H 'Content-Type: application/json' -i http://localhost/api/user/ --data '{
"name": "admin11", "name": "admin",
"email": "admin11@$DOMAIN", "email": "admin@$DOMAIN",
"password": "$ADMINPASS" "password": "$ADMINPASS"
}' &> /dev/null }' &> /dev/null
EOF EOF

View File

@ -33,12 +33,6 @@ create_password() {
SECRET=`tr -cd '[:alnum:]' < /dev/urandom | fold -w32 | head -n1` SECRET=`tr -cd '[:alnum:]' < /dev/urandom | fold -w32 | head -n1`
echo "$SECRET"; echo "$SECRET";
} }
start_blah() {
SERVICE="$1"
COMMAND="$2"
$COMMAND &> /dev/null
[ $? -eq 0 ] && echo -ne "done.\n" || fail "There was a problem starting service /federated/apps/$SERVICE"
}
start_service() { start_service() {
SERVICE="$1" SERVICE="$1"
COMMAND="$2" COMMAND="$2"