1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

gpupdate-setup: fix break symlink recreate during enable

This commit is contained in:
Evgeny Sinelnikov 2020-04-21 23:14:10 +04:00
parent d38e937e22
commit 8b63d294d3

2
dist/gpupdate-setup vendored
View File

@ -182,7 +182,7 @@ def enable_gp(policy_name):
if not os.path.isdir(etc_policy_dir):
os.makedirs(etc_policy_dir)
if not os.path.isdir(active_policy_name):
if not os.path.islink(active_policy_name):
os.symlink(default_policy_name, active_policy_name)
else:
os.unlink(active_policy_name)