cvs commit: ALFS/profiles/LFS runit

thomasp at linuxfromscratch.org thomasp at linuxfromscratch.org
Wed Dec 24 14:01:17 PST 2003


thomasp     03/12/24 15:01:17

  Modified:    profiles/LFS runit
  Log:
  updated root user check as suggested by Daniel Baumann on alfs-discuss list
  
  Revision  Changes    Path
  1.3       +3 -3      ALFS/profiles/LFS/runit
  
  Index: runit
  ===================================================================
  RCS file: /home/cvsroot/ALFS/profiles/LFS/runit,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- runit	14 Dec 2003 23:31:01 -0000	1.2
  +++ runit	24 Dec 2003 22:01:17 -0000	1.3
  @@ -1,8 +1,8 @@
   #!/bin/sh
   
  -if [[ `whoami` != root ]]; then
  -  echo Attention: this profile should be run as root.
  -  exit 3
  +if [ $(id -u) -ne 0 ]; then
  +   echo "Attention: this profile should be run as root."
  +   exit 3
   fi
   
   if [ ! -e config ]; then
  
  
  



More information about the alfs-log mailing list