From b631ce3fe6cebe5f3f3cb9f25a2ccd699eb28bad Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 8 Sep 2009 04:55:48 +0000 Subject: [PATCH] - make_project: create html/ops/.htaccess; secure admin web access by default svn path=/trunk/boinc/; revision=19013 --- checkin_notes | 7 +++++++ tools/make_project | 16 +++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 2e167bf4f5..64e24c669a 100644 --- a/checkin_notes +++ b/checkin_notes @@ -7553,3 +7553,10 @@ David 5 Sept 2009 util.inc user/ team_edit_form.php + +David 7 Sept 2009 + - make_project: create html/ops/.htaccess; + secure admin web access by default + + tools/ + make_project diff --git a/tools/make_project b/tools/make_project index a7f539db97..9e51a824b3 100755 --- a/tools/make_project +++ b/tools/make_project @@ -321,9 +321,6 @@ httpd_conf_template_filename = os.path.join( project_shortname+'.httpd.conf' ) -html_user_url = options.html_user_url -html_ops_url = options.html_ops_url - print >>open(httpd_conf_template_filename,'w'), ''' ## Settings for BOINC project %(project_longname)s @@ -349,6 +346,16 @@ print >>open(httpd_conf_template_filename,'w'), ''' ''' %locals() +htaccess_filename = options.project_root+'/html/ops/.htaccess' +htpasswd_filename = options.project_root+'/html/ops/.htpasswd' + +print >>open(htaccess_filename, 'w'), ''' +AuthName "%(project_shortname)s" +AuthType Basic +AuthUserFile %(htpasswd_filename)s +require valid-user +'''%locals() + cronjob_filename = os.path.join( options.project_root, project_shortname+'.cronjob' @@ -372,6 +379,9 @@ if options.test_app: bin/update_versions '''%locals() +html_user_url = options.html_user_url +html_ops_url = options.html_ops_url + print >>open(readme_filename,'w'), ''' Steps to complete installation: