{"id":1543,"date":"2013-02-07T09:35:43","date_gmt":"2013-02-07T09:35:43","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=1543"},"modified":"2013-02-07T09:41:22","modified_gmt":"2013-02-07T09:41:22","slug":"installer-pkg-scripts-variables-and-environment","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=1543","title":{"rendered":"Installer PKG scripts variables and environment"},"content":{"rendered":"<p>Variables handed to scripts<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">pathToScript=$0<br \/>\npathToPackage=$1<br \/>\ntargetLocation=$2<br \/>\ntargetVolume=$3<\/div><\/div>\n<p>Environment Variables set for scripts<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">INSTALLER_TEMP=\/private\/tmp\/PKInstallSandbox.EDPpwt\/tmp<br \/>\nDSTVOLUME=\/<br \/>\nTMPDIR=\/private\/tmp\/PKInstallSandbox.EDPpwt\/tmp<br \/>\nDSTROOT=\/<br \/>\nUSER=test<br \/>\nCOMMAND_MODE=unix2003<br \/>\nSCRIPT_NAME=preinstall<br \/>\nSHARED_INSTALLER_TEMP=\/var\/folders\/zz\/zyxvpxvq6csfxvn_n0000000000000\/Cleanup At Startup\/PKInstallSandboxManager-shared-tmp<br \/>\nINSTALLER_SECURE_TEMP=\/var\/folders\/zz\/zyxvpxvq6csfxvn_n0000000000000\/Cleanup At Startup\/PKInstallSandboxManager\/1.sandbox\/Secure_Temp.713947074<br \/>\nPATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin:\/usr\/libexec<br \/>\nPWD=\/private\/tmp\/PKInstallSandbox.EDPpwt\/Scripts\/com.test.Template.Vd7S2Z<br \/>\nINSTALL_PKG_SESSION_ID=com.test.Template<br \/>\nPACKAGE_PATH=\/Users\/test\/Desktop\/Iceberg Builds\/posttest\/build\/Template.pkg<br \/>\nSHLVL=1<br \/>\nHOME=\/Users\/test<br \/>\n_=\/usr\/bin\/printenv<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Variables handed to scripts pathToScript=$0 pathToPackage=$1 targetLocation=$2 targetVolume=$3 Environment Variables set for scripts INSTALLER_TEMP=\/private\/tmp\/PKInstallSandbox.EDPpwt\/tmp DSTVOLUME=\/ TMPDIR=\/private\/tmp\/PKInstallSandbox.EDPpwt\/tmp DSTROOT=\/ USER=test COMMAND_MODE=unix2003 SCRIPT_NAME=preinstall SHARED_INSTALLER_TEMP=\/var\/folders\/zz\/zyxvpxvq6csfxvn_n0000000000000\/Cleanup At [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1543","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1543"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1543\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}