Ignore:
Timestamp:
2009-04-22T16:44:51+12:00 (15 years ago)
Author:
oranfry
Message:

installer pages asking if the user wants to enable the admin pages and if so asking for a password, plus the necessary ant targets to make it happen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/mark2/installer/build.xml

    r19136 r19201  
    5555        <rsr file="${installDir}/cgi-bin/gliserver.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/>
    5656        <echo/>
    57 
    58         <echo message="Creating admin and demo users"/>
    59         <adduser txt2db="${installDir}/bin/darwin/txt2db"
    60             usersDb="${installDir}/etc/users.gdb"
    61             username="admin"
    62             password="${admin.password}"
    63             groups="administrator,colbuilder"
    64             comment="created at install time"/>
    65         <adduser
    66             txt2db="${installDir}/bin/darwin/txt2db"
    67             usersDb="${installDir}/etc/users.gdb"
    68             username="demo"
    69             password="demo"
    70             groups="demo"
    71             comment="Dummy 'demo' user with password 'demo' for authen-e collection"/>
    7257
    7358        <!-- delete unneeded files -->     
     
    153138    </target>
    154139
     140    <target name="Configuring Administration Pages" if="enable.admin.pages">
     141        <echo>Enabling Admin Pages</echo>
     142        <rsr file="${installDir}/etc/main.cfg" pattern="^\s*status\s+.*" replacement="status enabled"/>
     143        <echo message="Creating admin and demo users"/>
     144        <adduser txt2db="${installDir}/bin/darwin/txt2db"
     145            usersDb="${installDir}/etc/users.gdb"
     146            username="admin"
     147            password="${admin.password}"
     148            groups="administrator,colbuilder"
     149            comment="created at install time"/>
     150        <adduser
     151            txt2db="${installDir}/bin/darwin/txt2db"
     152            usersDb="${installDir}/etc/users.gdb"
     153            username="demo"
     154            password="demo"
     155            groups="demo"
     156            comment="Dummy 'demo' user with password 'demo' for authen-e collection"/>
     157    </target>
    155158
    156159
Note: See TracChangeset for help on using the changeset viewer.