Beispiel #1
0
 def pre_uninstall(self):
     data_dir = sh.joinpths(self.get_option("app_dir"), self.cfg.getdefaulted("swift", "data_location", "data"))
     sh.umount(sh.joinpths(data_dir, DEVICE_PATH))
     sh.replace_in(RSYNC_CONF_LOC, RSYNC_ON_OFF_RE, "RSYNC_ENABLE=false", True)
Beispiel #2
0
 def _turn_on_rsync(self):
     sh.symlink(sh.joinpths(self.get_option("cfg_dir"), RSYNC_CONF), RSYNCD_CONF_LOC)
     self.tracewriter.symlink_made(RSYNCD_CONF_LOC)
     sh.replace_in(RSYNC_CONF_LOC, RSYNC_ON_OFF_RE, "RSYNC_ENABLE=true", True)