Specify path for 'id' in Bookwyrm package
This commit is contained in:
parent
b0ba993543
commit
67ff6fc2c1
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ mkDerivation {
|
||||||
cat <<- EOF > $out/bin/bookwyrm-env
|
cat <<- EOF > $out/bin/bookwyrm-env
|
||||||
#!${bash}/bin/sh
|
#!${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"
|
echo "You are not running as the 'bookwyrm' user and group, quitting"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue