Afternoon All.
Hoping someone can help have been trying to package Maya & Mudbox 2024 for serveral weeks and facing issues I think with the license demon not starting before its get licensed.
I get below error from Jamf log
connecting to Service failed: reading configuration file /Library/Application Support/Autodesk/AdskLicensingService/AdskLicensingService.data failed: open /Library/Application Support/Autodesk/AdskLicensingService/AdskLicensingService.data: no such file or directory
connecting to Service failed: reading configuration file /Library/Application Support/Autodesk/AdskLicensingService/AdskLicensingService.data failed: open /Library/Application Support/Autodesk/AdskLicensingService/AdskLicensingService.data: no such file or directory
My scripting ablity isnt up to much, I think I just need a few lines in my current script to ensure the license demon is running before the license process starts. Can anyone help?
Have tried a few scripts on here but keep facing the same issue.
Many Thanks
Tom
#!/bin/bash
#Copy installer app from .dmg to /tmp
#Modify values below as necessary (Usually: year and pKey)
#Set variables
year="2024"
pkgPath1="/private/tmp/InstallMaya2024.app/Contents/Helper/Packages/Maya/MayaUSD.pkg"
pkgPath2="/private/tmp/InstallMaya2024.app/Contents/Helper/Packages/Maya/Maya_AdLMconf2024.pkg"
pkgPath3="/private/tmp/InstallMaya2024.app/Contents/Helper/Packages/Licensing/adskflexnetserverIPV6.pkg"
##pkgPath4="/tmp/Install Maya 2022.app/Contents/Helper/Packages/AdSSO/AdSSO-v2.pkg"
pkgPath5="/private/tmp/InstallMaya2024.app/Contents/Helper/Packages/Licensing/AdskLicensing-13.3.1.9694-mac-installer.pkg"
pkgPath6="/private/tmp/InstallMaya2024.app/Contents/Helper/Packages/Maya/Maya_core2024.pkg"
pkgPath7="/private/tmp/InstallMaya2024.app/Contents/Helper/Packages/Maya/bifrost.pkg"
pkgPath8="/private/tmp/InstallMaya2024.app/Contents/Helper/Packages/Maya/MtoA.pkg"
pkgPath9="/private/tmp/InstallMaya2024.app//Contents/Helper/Packages/Maya/AdobeSubstance3DforMaya-2.4.0-2024-mac-universal.pkg"
##pkgPath10="/tmp/Install Maya 2022.app/Contents/Helper/Packages/Maya/motion-library.maya2022-2.0.0.pkg"
##pkgPath11="/tmp/Install Maya 2022.app/Contents/Helper/Packages/Maya/Pymel2022.pkg"
mayapKey="657P1"
networkServer="alic03.network.uni"
mayalicPath="/Library/Application Support/Autodesk/AdskLicensingService/${mayapKey}_${year}.0.0.F"
mayalicFile="LICPATH.lic"
mayalgsFile="LGS.data"
#Mudbox
##pkgPath12="/tmp/Install Mudbox 2022.app/Contents/Packages/ADLM/AdSSO-v2.pkg"
pkgPath13="/private/tmp/InstallMudbox2024.app/Contents/Helper/Packages/Licensing/AdskLicensing-13.0.0.8122-mac-installer.pkg"
pkgPath14="/private/tmp/InstallMudbox2024.app/Contents/Helper/Packages/Licensing/adskflexnetserverIPV6.pkg"
pkgPath15="/private/tmp/InstallMudbox2024.app/Contents/Helper/Packages/Mudbox/Mudbox_AdLMconf2024.pkg"
pkgPath16="/private/tmp/InstallMudbox2024.app/Contents/Helper/Packages/Mudbox/Mudbox_core2024.pkg"
mudboxpKey="498P1"
mudboxlicPath="/Library/Application Support/Autodesk/AdskLicensingService/${mudboxpKey}_${year}.0.0.F"
mudboxlicFile="LICPATH.lic"
mudboxlgsFile="LGS.data"
#Declare functions
runInstaller ()
{
/usr/sbin/installer -verboseR -pkg "${pkgPath1}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath2}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath3}" -target /
##/usr/sbin/installer -verboseR -pkg "${pkgPath4}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath5}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath6}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath7}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath8}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath9}" -target /
##/usr/sbin/installer -verboseR -pkg "${pkgPath10}" -target /
##/usr/sbin/installer -verboseR -pkg "${pkgPath11}" -target /
##/usr/sbin/installer -verboseR -pkg "${pkgPath12}" -target / #Mudbox
/usr/sbin/installer -verboseR -pkg "${pkgPath13}" -target / #Mudbox
/usr/sbin/installer -verboseR -pkg "${pkgPath14}" -target / #Mudbox
/usr/sbin/installer -verboseR -pkg "${pkgPath15}" -target / #Mudbox
/usr/sbin/installer -verboseR -pkg "${pkgPath16}" -target / #Mudbox
}
createMayaLicenseFiles ()
{
if [[ ! -e "${mayalicPath}" ]];
then
/bin/mkdir "${mayalicPath}"
fi
/usr/bin/touch "${mayalicPath}/${mayalgsFile}"
/bin/chmod 777 "${mayalicPath}/${mayalgsFile}"
/usr/bin/touch "${mayalicPath}/${mayalicFile}"
/bin/chmod 777 "${mayalicPath}/${mayalicFile}"
/bin/echo "SERVER ${networkServer} 000000000000" > "${mayalicPath}/${mayalicFile}"
/bin/echo "USE_SERVER" >> "${mayalicPath}/${mayalicFile}"
/bin/echo "_NETWORK" >> "${mayalicPath}/${mayalgsFile}"
}
createMudboxLicenseFiles ()
{
if [[ ! -e "${mudboxlicPath}" ]];
then
/bin/mkdir "${mudboxlicPath}"
fi
/usr/bin/touch "${mudboxlicPath}/${mudboxlgsFile}"
/bin/chmod 777 "${mudboxlicPath}/${mudboxlgsFile}"
/usr/bin/touch "${mudboxlicPath}/${mudboxlicFile}"
/bin/chmod 777 "${mudboxlicPath}/${mudboxlicFile}"
/bin/echo "SERVER ${networkServer} 000000000000" > "${mudboxlicPath}/${mudboxlicFile}"
/bin/echo "USE_SERVER" >> "${mudboxlicPath}/${mudboxlicFile}"
/bin/echo "_NETWORK" >> "${mudboxlicPath}/${mudboxlgsFile}"
}
MayalicenceHelper ()
{
/Library/Application\\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${mayapKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
}
MudboxlicenceHelper ()
{
/Library/Application\\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${mudboxpKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
}
cleanUp ()
{
/bin/rm -rf "${pkgPath}"
/bin/rm -rf "${tmpfile}"
}
#Run script
runInstaller
createMayaLicenseFiles
createMudboxLicenseFiles
MayalicenceHelper
MudboxlicenceHelper
cleanUp