pkg installer error in macOS 12.3 : rights in /library/Application Support

Hello,

Is there any changes in the rights of the folder /Library/Application Support starting with macOS 12.3 ? Our application refuse to install, our postinstall script fails to create a folder (and files in it) in /Library/Application Support.

Our installer-gui-script specify auth="Root" and our postinstall script (postflight python) trigger this : os.system('mkdir /Library/Application\ Support/***')

I don't find anything about this in the release change log macOS 12.3. Everything was fine in previous macOS version.

Thanks

Accepted Reply

The issue was the postinstall script written in python and calling the depreciated python 2.x (removed in macOS 12.3...)

Replies

If the directory already exists, mkdir will fail. Use os.makedirs instead of os.system('mkdir ...'):

if not os.path.exists(dir):
    os.makedirs(dir)

The issue was the postinstall script written in python and calling the depreciated python 2.x (removed in macOS 12.3...)