Changeset 18734 for gsdl

Show
Ignore:
Timestamp:
23.03.2009 10:44:24 (11 years ago)
Author:
davidb
Message:

Adjustment to using how called, to correctly get encrypted password into user.db file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/GSI-Makefile

    r18733 r18734  
    4747    @echo "" ; 
    4848    @echo "Configuring admin user password:" ;  
    49     @ encrypted_password=`getpw` ;  
    50     @ if [ $$? = "0" ] ; then \ 
    51       echo -e "[admin]\n<enabled>true\n<groups>administrator,colbuilder,all-collections-editor\n<password>$$encrypted_password\n<username>admin" \ 
    52              | txt2db -append "${GSDLHOME}/etc/users.db" ; \ 
    53     fi 
     49    @ (encrypted_password=`getpw` ;  \ 
     50       if [ $$? = "0" ] ; then \ 
     51         echo -e "[admin]\n<enabled>true\n<groups>administrator,colbuilder,all-collections-editor\n<password>$$encrypted_password\n<username>admin" \ 
     52              | txt2db -append "${GSDLHOME}/etc/users.db" ; \ 
     53       else \ 
     54         echo "Did not set password" ; \ 
     55       fi ) 
    5456    @echo "" 
    5557