From: Mark Huang Date: Tue, 11 Jul 2006 20:57:25 +0000 (+0000) Subject: push plc_mail_enabled to /etc/planetlab/plc_api for now X-Git-Tag: planetlab-4_0-rc1~145 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=00a47555233cf8fae031301d57c25f322c9a513c;p=myplc.git push plc_mail_enabled to /etc/planetlab/plc_api for now --- diff --git a/api-config b/api-config index b7b4eee..5006a43 100755 --- a/api-config +++ b/api-config @@ -6,7 +6,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: api-config,v 1.13 2006/06/23 20:33:28 mlhuang Exp $ +# $Id: api-config,v 1.14 2006/07/10 21:06:16 mlhuang Exp $ # from plc_config import PLCConfiguration @@ -83,6 +83,11 @@ def main(): os.symlink(plc['root_ssh_key_pub'], "/etc/planetlab/node_root_key") # Old variable names littered throughout the API + if plc_mail['enabled'] == "true": + plc_mail_enabled = "1" + else: + plc_mail_enabled = "0" + old_variables = {'PL_API_SERVER': plc_api['host'], 'PL_API_PATH': plc_api['path'], 'PL_API_PORT': plc_api['port'], @@ -94,6 +99,7 @@ def main(): 'WWW_BASE': plc_www['host'], 'BOOT_BASE': plc_boot['host'], + 'PLC_MAIL_ENABLED': plc_mail_enabled, 'MA_SA_NAMESPACE': plc_ma_sa['namespace'], 'SESSION_LENGTH_HOURS': "24", 'ROOT_CA_EMAIL': root_ca_email,