mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-client: correct directory location by using constants instead
If something in the client sysrestore.state wasn't removed by the installer a warning message was printed with an incorrect location. Fix this by using constants instead. Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
b6af3a43c7
commit
a8a923033b
@ -3697,9 +3697,12 @@ def uninstall(options):
|
|||||||
logger.warning(
|
logger.warning(
|
||||||
'Some installation state has not been restored.\n'
|
'Some installation state has not been restored.\n'
|
||||||
'This may cause re-installation to fail.\n'
|
'This may cause re-installation to fail.\n'
|
||||||
'It should be safe to remove /var/lib/ipa-client/sysrestore.state '
|
'It should be safe to remove %s '
|
||||||
'but it may\n mean your system hasn\'t been restored '
|
'but it may\n mean your system hasn\'t been restored '
|
||||||
'to its pre-installation state.')
|
'to its pre-installation state.',
|
||||||
|
os.path.join(paths.IPA_CLIENT_SYSRESTORE,
|
||||||
|
sysrestore.SYSRESTORE_STATEFILE)
|
||||||
|
)
|
||||||
|
|
||||||
# Remove the IPA configuration file
|
# Remove the IPA configuration file
|
||||||
remove_file(paths.IPA_DEFAULT_CONF)
|
remove_file(paths.IPA_DEFAULT_CONF)
|
||||||
|
Loading…
Reference in New Issue
Block a user