tis-fixwaptacl 2

  • package : tis-fixwaptacl
  • version : 2
  • description : Fix inheritance ACL on wapt root folder for Win10 systems
  • maintainer : Hubert TOUVET
  • date : 2018-02-27 18:59:54

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *
from winsys import fs
import difflib

uninstallkey = []

def install():
    waptroot = WAPT.wapt_base_dir
    if windows_version() >= Version('6.0'):
        with disable_file_system_redirection():
            before = run(r'icacls.exe "%s" /q'%waptroot)
            print('Remove inheritance of ACLs on %s' % waptroot)
            print(run(r'icacls.exe "%s" /inheritance:r'%waptroot))
            after = run(r'icacls.exe "%s" /q'%waptroot)
            print('Result: %s' % '\n'.join(difflib.ndiff(before.splitlines(),after.splitlines())))
    else:
        print('Nothing to do')

    

Changelog

No changelog
    

manifest.sha256

[["setup.py", "491e80576f7dc04e921e9021f7e85eac7ee623b5f0cda0487b218c09583b2f4f"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "b1ce3b4267b131b7829ec336eb3e9847d5f1942db81473f4c37d83f390d9ff37"], ["WAPT/control", "4a205e0610eefb8ea96c807db60743dbb80b61708bc1a021b74397b5fd429dfb"]]