Changeset 18494 for gsdl


Ignore:
Timestamp:
2009-02-10T16:19:37+13:00 (15 years ago)
Author:
davidb
Message:

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

File:
1 edited

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