From: Matthijs Kooijman Date: Fri, 3 Apr 2009 11:29:53 +0000 (+0200) Subject: fastcgi: Pass the site dir to each fastcgi daemon. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=5c9fc728a535b3bce6692c4eeecd1b8220a8772c;p=matthijs%2Fservers%2Fdrsnuggles.git fastcgi: Pass the site dir to each fastcgi daemon. --- diff --git a/etc/init.d/fastcgi b/etc/init.d/fastcgi index 26e800c..bd5690f 100755 --- a/etc/init.d/fastcgi +++ b/etc/init.d/fastcgi @@ -76,6 +76,9 @@ for (site, apps) in SITES: site_dir = os.path.join(ROOT_DIR, site) socket_dir = os.path.join(SOCKET_DIR, site_name) + # Pass the site dir to all fastcgi processes + os.environ['SITE_DIR'] = site_dir + if not site_dir: raise Exception("Site dir does not exist: %s" % (site_dir))