nixos/mediagoblin: fix gmg argument parsing

Before the argument to mediagoblin-gmg would be passed to the actual command
and the rest to sh which is obviously nonsense.
This commit is contained in:
Sandro Jäckel 2024-12-09 23:09:00 +01:00
parent b965e4c283
commit dd63ca898e
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -189,7 +189,7 @@ in
if [[ "$USER" != mediagoblin ]]; then
sudo='exec /run/wrappers/bin/sudo -u mediagoblin'
fi
$sudo sh -c "cd /var/lib/mediagoblin; env GI_TYPELIB_PATH=${GI_TYPELIB_PATH} ${lib.getExe' finalPackage "gmg"} $@"
$sudo sh -c "cd /var/lib/mediagoblin; env GI_TYPELIB_PATH=${GI_TYPELIB_PATH} ${lib.getExe' finalPackage "gmg"} $*"
'')
];