Changeset 18494 for gsdl

Show
Ignore:
Timestamp:
10.02.2009 16:19:37 (11 years ago)
Author:
davidb
Message:

configure-admin target added to set password in etc/users.db

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/Makefile.in

    r18475 r18494  
    7777 
    7878 
     79configure-admin: 
     80    @ if test ! -z "$(GSDLHOME)" ; then \ 
     81      echo "" ; \ 
     82      echo "Configuring admin user password:" ; \ 
     83      encrypted_password=`getpw` ; \ 
     84      if [ $$? = "0" ] ; then \ 
     85        echo -e "[admin]\n<enabled>true\n<groups>administrator,colbuilder,all-collections-editor\n<password>$$encrypted_password\n<username>admin" \ 
     86               | txt2db -append "${GSDLHOME}/etc/users.db" ; \ 
     87      fi \ 
     88    else \ 
     89      echo "Environment variable GSDLHOME not set.  Have you run 'source setup.bash'?" ; \ 
     90    fi 
     91    @echo "" 
     92 
     93 
     94 
     95 
    7996distclean: clean 
    8097    rm -f Makefile config.cache config.h config.log stamp-h config.status