Пример #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)
Пример #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)
Пример #3
0
 def pre_uninstall(self):
     sh.umount(sh.joinpths(self.datadir, DEVICE_PATH))
     sh.replace_in_file('/etc/default/rsync',
                        'RSYNC_ENABLE=true',
                        'RSYNC_ENABLE=false',
                        run_as_root=True)