subprocess.call(['sqlite3', '-init', sql, users_db, '.quit'])
trans_db = os.path.join(workdir, 'transactions.sqlite')
+ cachedir = os.path.join(workdir, 'cache')
with open(CONF_TEMPLATE) as f:
conf_template = f.read()
'instance': 'idp',
'staticdir': os.getcwd(),
'datadir': workdir,
+ 'cachedir': cachedir,
'admindb': admin_db,
'usersdb': users_db,
'transdb': trans_db,
'sessopt': 'path',
'sessval': os.path.join(workdir, 'sessions'),
'secure': 'False',
+ 'cleanup_interval': 1,
})
conf = os.path.join(workdir, 'ipsilon.conf')
with open(conf, 'w+') as f:
os.symlink(os.path.join(os.getcwd(), 'ui'),
os.path.join(args['workdir'], 'ui'))
+ if not os.path.exists(os.path.join(args['workdir'], 'cache')):
+ # This is only used in quickrun. Apache serves this directly
+ os.makedirs(os.path.join(args['workdir'], 'cache'))
os.chdir(args['workdir'])