Replace site for sirius initscript.
[myplc.git] / db-config
index a8ff3a7..64c5e24 100755 (executable)
--- a/db-config
+++ b/db-config
@@ -511,8 +511,8 @@ def main():
 
         # CoDemux
         {'name': "codemux",
-         'description': "Demux HTTP between slices using localhost ports. Value in the form 'host, localhost port'."
-         'min_role_id': 10}
+         'description': "Demux HTTP between slices using localhost ports. Value in the form 'host, localhost port'.",
+         'min_role_id': 10},
 
         ]
 
@@ -537,7 +537,7 @@ def main():
             file = open(root + "/" + f, "ro")
             default_initscripts.append({"name": plc['slice_prefix'] + "_" + f,
                                         "enabled": True,
-                                        "script": file.read()})
+                                        "script": file.read().replace("XXXSITEXXX", url)})
             file.close()
 
     # Get list of existing initscripts