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
2025-05-28 16:00:15 +02:00
parent b965e4c283
commit dd63ca898e
@@ -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"} $*"
'')
];