Skip to content

Commit 875b35b

Browse files
hosts: client, do not delete /home during restore
The /home is mountpoint so deleting it on real machine for backup and restore does not work in idmci.
1 parent 6a6bcaf commit 875b35b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sssd_test_framework/hosts/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ def restore(self, backup_data: Any | None) -> None:
149149
fi
150150
}}
151151
152-
rm --force --recursive /etc/sssd /var/lib/sss /var/log/sssd /home
152+
rm --force --recursive /etc/sssd /var/lib/sss /var/log/sssd /home/*
153153
restore "{backup_path}/krb5.conf" /etc/krb5.conf
154154
restore "{backup_path}/krb5.keytab" /etc/krb5.keytab
155155
restore "{backup_path}/config" /etc/sssd
156156
restore "{backup_path}/logs" /var/log/sssd
157157
restore "{backup_path}/lib" /var/lib/sss
158-
restore "{backup_path}/home" /home
158+
cp --force --archive "{backup_path}/home/*" /home/ || :
159159
""",
160160
log_level=ProcessLogLevel.Error,
161161
)

0 commit comments

Comments
 (0)