Added simplified ConfFile entry using myops_setup_sh
[myops.git] / web / db-config.d / 030-conf_files_myops
index b83eed7..17b7503 100644 (file)
@@ -20,17 +20,17 @@ conf_files = [
        'file_permissions': u'644',
        'source': 'PlanetLabConf/sysstat.cron'},
 
-{'dest': "/home/%s_myops/bootstrap.tar" % plc['slice_prefix'],
+{'dest': "/usr/bin/myops_update.sh",
        'always_update': False,
        'enabled': True,
        'file_group': u'root',
        'file_owner': u'root',
-       'file_permissions': u'644',
-       'source': 'PlanetLabConf/bootstrap.tar',
-       'preinstall_cmd': ' mkdir -p /home/%s_myops/ ' % plc['slice_prefix'],
-       'postinstall_cmd': ' cd /home/%s_myops/ ; tar -xvf bootstrap.tar ; chmod 755 ./*.sh ./lshw ; ./bootstrap.sh ' % plc['slice_prefix']},
+       'file_permissions': u'755',
+       'source': 'PlanetLabConf/myops_update_sh',
+       'preinstall_cmd': '',
+       'postinstall_cmd': 'if [ ! -f /home/%s_myops/update_ok ] ; then /usr/bin/myops_update.sh ; fi ' % plc['slice_prefix'] },
 
-    ]
+]
 
 for conf_file in conf_files:
        SetConfFile(conf_file)