Skip to content
Snippets Groups Projects
Commit bb60cd95 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Added a small fix for duplicates.

Actually I tested the behaviour with that fix, only forgot to add to file in repository.
parent 92647baa
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,7 @@ function grant-permission() {
fi
cmd="INSERT INTO permissions (role, permissions) VALUE ('${role}', '${permissions}')"
cmd+="ON DUPLICATE KEY UPDATE role='${role}'"
cmd+="ON DUPLICATE KEY UPDATE role='${role}', permissions='${permissions}'"
cmd+=";"
$MYSQL_CMD $(get_mysql_args) -e "$cmd"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment