Exemplo n.º 1
0
 def pre_uninstall(self):
     sh.umount(sh.joinpths(self.datadir, DEVICE_PATH))
     sh.replace_in(RSYNC_CONF_LOC, RSYNC_ON_OFF_RE, 'RSYNC_ENABLE=false', True)
Exemplo n.º 2
0
 def pre_uninstall(self):
     sh.umount(sh.joinpths(self.datadir, DEVICE_PATH))
     sh.replace_in(RSYNC_CONF_LOC, RSYNC_ON_OFF_RE, 'RSYNC_ENABLE=false',
                   True)
Exemplo n.º 3
0
 def _turn_on_rsync(self):
     sh.symlink(sh.joinpths(self.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)
Exemplo n.º 4
0
 def _turn_on_rsync(self):
     sh.symlink(sh.joinpths(self.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)