run command text

Discussion in 'General' started by Niels, Jan 31, 2011.

  1. Niels

    Niels New Member

    I have made a server with subversion and want to make it run some commands when Im making a new repository.

    Now Im running this in console:

    svnadmin create /var/www/clients/client1/web5/svn/[projectname]
    chown -R web5:client1 /var/www/clients/client1/web5/svn
    chmod -R 770 /var/www/clients/client1/web5/svn
    htpasswd -c /var/www/clients/client1/web5/svn/[projectname].passwd [user1]
    htpasswd /var/www/clients/client1/web5/svn/[projectname].passwd [user2]

    and then I add this in apcache directives in ispconfig

    <Location /svn/[projectname]>
    DAV svn
    SVNPath /var/www/clients/client1/web5/svn/[projectname]
    AuthType Basic
    AuthName "Subversion"
    AuthUserFile /var/www/clients/client1/web5/svn/[projectname].passwd
    Require valid-user

    But how to make all this just with write the projectname in a textbox and push a button (I know how to make the HTML but just want to know the last thing).

Share This Page