lib/common.rb in six-updater-web-0.12.4 vs lib/common.rb in six-updater-web-0.12.5
- old
+ new
@@ -2,11 +2,16 @@
DEFAULT_PORT = 16333
DEFAULT_IP = '127.0.0.1'
OLDLOCATION = if defined?(TAR2RUBYSCRIPT)
oldlocation
else
- Dir.pwd
+ ENV['BASE_PATH'] ? ENV['BASE_PATH'] : Dir.pwd
end
+
+ unless ENV['BASE_PATH']
+ ENV['BASE_PATH'] = OLDLOCATION
+ end
+
SPECIAL = true
SIX_ADMIN = true
end