usergen: Do not abort on existing directory

Otherwise, it would not be possible to replace user credentials if the
directory already exists.
This commit is contained in:
Xavier Del Campo Romero 2024-02-20 21:44:04 +01:00
parent 8bcf0bf855
commit dd29f9096a
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 1 additions and 1 deletions

View File

@ -93,5 +93,5 @@ jq ".users += [
\"quota\": \"$QUOTA\"
}]" "$DB" > $TMP
mkdir "$DIR/user/$USER"
mkdir -p "$DIR/user/$USER"
mv $TMP "$DB"