You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by rg...@apache.org on 2011/07/24 22:59:16 UTC
svn commit: r1150513 -
/incubator/tashi/branches/zoni-dev/trunk/src/zoni/install/www/zoniWebSetup.py
Author: rgass
Date: Sun Jul 24 22:59:15 2011
New Revision: 1150513
URL: http://svn.apache.org/viewvc?rev=1150513&view=rev
Log:
remove local createDir function and use the one in utils
Modified:
incubator/tashi/branches/zoni-dev/trunk/src/zoni/install/www/zoniWebSetup.py
Modified: incubator/tashi/branches/zoni-dev/trunk/src/zoni/install/www/zoniWebSetup.py
URL: http://svn.apache.org/viewvc/incubator/tashi/branches/zoni-dev/trunk/src/zoni/install/www/zoniWebSetup.py?rev=1150513&r1=1150512&r2=1150513&view=diff
==============================================================================
--- incubator/tashi/branches/zoni-dev/trunk/src/zoni/install/www/zoniWebSetup.py (original)
+++ incubator/tashi/branches/zoni-dev/trunk/src/zoni/install/www/zoniWebSetup.py Sun Jul 24 22:59:15 2011
@@ -124,7 +124,7 @@ def ZoniWebSetup(config):
zoniInstallDir = config['installBaseDir']
zoniWebRoot = os.path.join(docRoot, baseDir )
- createDir(zoniWebRoot, 1)
+ if not (createDir(zoniWebRoot, 1)): print "Please use sudo"; exit()
zoniIncludeDir = os.path.join(zoniWebRoot, "include")
createDir(zoniIncludeDir)
zoniRegisterDir = os.path.join(zoniWebRoot, "register")