Re: Is it ok to create a directory from a postflight script?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=lIvfm6tCASSz7C0e62iBj52PU3dnBLBxVd9T/WVxBaI=; b=sdaBHAVdsL5G0uVA4+IUUgWeHpfhNmExvxIXJrv8nG4ZdQOvY9xJz+N3j/mwnkI8pG drISXAGu+SptrHeAPPVIDCyARVocVr6oK48aihwPkGBbJ/LCzjnAlQ1pdBJX15x7t0ML DBVrpYFxwJyxJqDX0ZIAJlBxDqTvGabUqke28= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=OjCdEv8UuycY5voOwjkL017b0RLkNOTLSYMXpqJFg/fPGG49RtxE8OomB7t1jWd1CF 9IwPtIBmUVfzqU0Gmve6yymTK78ie9+gr3629vfPe/l4Uvr3T9W8plrggjNh2I7yZy95 yTn9Zek40m8rhvYGyD2hm9CvEUHqdwJ7patbY= On Jan 6, 2009, at 7:41 AM, dev.iceberg@gmail.com wrote: mkdir /Library/Application\ Support/Company/target /bin/mkdir -p /Library/Application\ Support/Company/target /bin/mkdir -p "$3"/Library/Application\ Support/Company/target -- Karl Kuehn larkost@softhome.net _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I need to create a folder in /Library/Application\ Support/Company/ called 'target'. Is it ok to add the following step to the postflight script: Or, should this be in a postinstall script instead? /bin/chmod 775 Library/Application\ Support/Company/target /usr/sbin/chown root:admin /Library/Application\ Support/Company/ target postflight is fine with the command above. If at all possible I would put the directory in the package without invoking a postflight script. If you do have to use a script for some reason, I would ask that you get in the habit of always using commands that reference relative to the install target ($3): /bin/chmod 775 "$3"/Library/Application\ Support/Company/target /usr/sbin/chown root:admin "$3"/Library/Application\ Support/Company/ target I ask this because I am one of the developers of InstaDMG, and one of the problems we run into time and again is that people don't use the relative targeting and our system then installs all of the files on the target volume, but the scripts screw up and target the boot volume. This email sent to site_archiver@lists.apple.com
participants (1)
-
Karl Kuehn