Specify path for 'id' in Bookwyrm package

This commit is contained in:
Reinout Meliesie 2025-03-09 13:31:34 +01:00
parent b0ba993543
commit 67ff6fc2c1
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -144,7 +144,7 @@ mkDerivation {
cat <<- EOF > $out/bin/bookwyrm-env
#!${bash}/bin/sh
if [ \$( id -un ) != "bookwyrm" -o \$( id -gn ) != "bookwyrm" ] ; then
if [ \$( ${coreutils-full}/bin/id -un ) != "bookwyrm" -o \$( ${coreutils-full}/bin/id -gn ) != "bookwyrm" ] ; then
echo "You are not running as the 'bookwyrm' user and group, quitting"
exit 1
fi