mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix unnecessary usrmerge assumptions
On non-usrmerge systems (e.g., Debian), bash, mv, cp, cat, tail, keyctl, and gzip live in /bin, not /usr/bin. On usrmerge systems, /bin is a symlink to /usr/bin (or vice versa), so this has no effect. Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
committed by
Christian Heimes
parent
0ba25c7e68
commit
5ecede781b
@@ -32,7 +32,7 @@ def create_broken_resolv_conf(master):
|
||||
# Force a broken resolv.conf to simulate a bad response to
|
||||
# reverse zone lookups
|
||||
master.run_command([
|
||||
'/usr/bin/mv',
|
||||
'/bin/mv',
|
||||
paths.RESOLV_CONF,
|
||||
'%s.sav' % paths.RESOLV_CONF
|
||||
])
|
||||
@@ -44,7 +44,7 @@ def create_broken_resolv_conf(master):
|
||||
def restore_resolv_conf(master):
|
||||
if os.path.exists('%s.sav' % paths.RESOLV_CONF):
|
||||
master.run_command([
|
||||
'/usr/bin/mv',
|
||||
'/bin/mv',
|
||||
'%s.sav' % paths.RESOLV_CONF,
|
||||
paths.RESOLV_CONF
|
||||
])
|
||||
|
Reference in New Issue
Block a user