From 447125c37a1762fe7963ae94ab9b74fce67fa608 Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Sat, 28 Jan 2017 17:26:10 -0500 Subject: [PATCH 1/1] create-user: create fastcgi wrapper script mod_fcgid is annoying and has no way to integrate with mod_waklog. Generate wrapper scripts that grab tokens as a workaround. --- create-user-new | 3 ++- lib/create-user-lib.sh | 20 +++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/create-user-new b/create-user-new index 56de1fc..20f647d 100755 --- a/create-user-new +++ b/create-user-new @@ -44,7 +44,8 @@ ensure_afs_servers_synced seed_user_hcoop_directories setup_user_databases create_dav_locks +create_fcgi_wrapper enable_domtool -subscribe_to_lists \ No newline at end of file +subscribe_to_lists diff --git a/lib/create-user-lib.sh b/lib/create-user-lib.sh index 4583b45..a65b490 100644 --- a/lib/create-user-lib.sh +++ b/lib/create-user-lib.sh @@ -289,4 +289,22 @@ function ensure_afs_servers_synced () { # refresh volume location cache (takes ~2hrs otherwise) execute_on_all_machines fs checkvolumes -} \ No newline at end of file +} + +# +# webserver +# + +function create_fcgi_wrapper () { + # note: might want to move this to domtool-adduser + local wrapper="/afs/hcoop.net/common/httpd/fastcgi/${PATHBITS}/${NEWUSER}-wrapper-wrapper" + mkdir -p /afs/hcoop.net/common/httpd/fastcgi/${PATHBITS} + cat > $wrapper <