Below is a section from my bash script, which should create a frontend user:
DBUSER="testing"
DBNAME="testing"
ADMIN_NAME="A"
ADMIN_LNAME="B"
ADMIN_EMAIL="[email protected]"
ADMIN_PASSWORD="'password'"
PGPASSWORD=$DBPASS psql -U $DBUSER -d $DBNAME -h 127.0.0.1 -c "INSERT INTO users_user VALUES (1, \'$ADMIN_NAME\', \'$ADMIN_LNAME\', \'$ADMIN_EMAIL\', \'$ADMPASS\', \'true\', \'zxc\')"
The result I get it this:
ERROR: syntax error at or near "\"
LINE 1: INSERT INTO users_user VALUES (1, \'A\', \'B\', \'...
Can anyone tell me where I am going wrong please?