Changeset 18734 for gsdl


Ignore:
Timestamp:
2009-03-23T10:44:24+13:00 (15 years ago)
Author:
davidb
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.