Created
December 30, 2011 04:16
-
-
Save rickychilcott/1537820 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PRODUCT=Maya | |
YEAR=2012 | |
LIC=/private/var/flexlm/${PRODUCT}${YEAR}.lic | |
PRODCODE=657D1 | |
SERIAL=123-4567890 | |
SERVER=server.domain.com | |
LICENSEENV=/Applications/Autodesk/maya${YEAR}/${PRODUCT}.app/Contents/License.env | |
# Network license file | |
echo "SERVER ${SERVER}1" > ${LIC} | |
echo USE_SERVER >> ${LIC} | |
echo VENDOR adskflex >> ${LIC} | |
chmod 644 ${LIC} | |
chown root:wheel ${LIC} | |
# License.env file | |
echo "MAYA_LICENSE=unlimited" > ${LICENSEENV} | |
echo "MAYA_LICENSE_METHOD=network" >> ${LICENSEENV} | |
chmod 755 ${LICENSEENV} | |
chown root:admin ${LICENSEENV} | |
# registration | |
/usr/bin/adlmreg -i N ${PRODCODE} ${PRODCODE} ${YEAR}.0.0.F ${SERIAL} /Library/Application\ Support/Autodesk/Adlm/PIT/${YEAR}/${PRODUCT}Config.pit | |
# symlink in Applications | |
ln -s /Applications/Autodesk/maya${YEAR}/${PRODUCT}.app /Applications/${PRODUCT}\ ${YEAR}.app | |
# disable MC3 | |
/usr/bin/defaults write /Library/Preferences/com.autodesk.MC3Framework MC3Enabled -int 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment