Changeset 19201 for release-kits/mark2


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

Location:
release-kits/mark2/installer
Files:
2 edited

Legend:

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

    r18723 r19201  
    7878
    7979    </page>
     80
     81    <page type="input" name="admin-pages" displayText="">
     82        <comment name="admin-expl"/>
     83        <comment name="admin-expl-2"/>
     84        <comment name="admin-expl-3"/>
     85        <checkbox property="enable.admin.pages" displayText="" defaultValue="false"/>
     86    </page>
     87
     88    <page type="input" name="admin-password" displayText="" ifProperty="(${enable.admin.pages}==true)" target="Configuring Administration Pages">
     89        <comment name="admin-password-expl"/>
     90        <validated property="admin.password" defaultValue="" displayText="" regex="^.{3,20}$"/>
     91    </page>
     92
    8093    <!-- end binary release -->
    8194
    82     <page type="input" name="admin-password" displayText="">
    83         <comment name="admin-password-expl"/>
    84 <!--        <validated property="admin.password" defaultValue="" displayText="" regex="^.{3,20}$"/>-->
    85         <text property="admin.password" defaultValue="admin" displayText=""/>
    86     </page>
    8795
    8896    <page type="progress" name="progress" showTargets="true" displayText=""/>
  • 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.