Re: Access to /usr/local from installer plug-in
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:in-reply-to:references :mime-version:x-priority:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; bh=kX2f2Nt9gwn5Pxv/cmpK7pZ4WdMNE2APvAJqdSd53GM=; b=oVcEoFvc5hV/gyWH0OeE25tsbHq2F2UodmJsguJ84jUGRyvbO25zAXp7vvfbXit955 C6ADhprEplvkFtelv1D5J9RZZbKUWH7ZvxKYRKufRUBPXJO8TUAB2WmE26YYMeS3Lhid IjgTcc+WsSwf59GbsWskkSb8K2YtBmEbA4KjY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:x-priority:content-type :message-id:cc:content-transfer-encoding:from:subject:date:to :x-mailer; b=PqJsKfPpPmBn4Zlrj7EFLAiccYkEqip0rsWTdc4mp9t9B015/hGbq/OWSEgdul7Rie zmmsSuTN/eAgNyZDtT5bM2/q+DC7mCfJ8+E31duZXJkCeomaz9Gv4HoqtEnJj2wJIkNp BJUJxr/o5Pgt+CNnspNw0e+qyrmq2qzdp30pA= On Dec 9, 2009, at 8:38 PM, Stanislav Kolar wrote: Hello, Is there a solution of my problem ? My $0.02 _______________________________________________ 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 have to write an installer plug-in that asks for some initial information during the installation process and saves them as a xml file into /usr/local/my_dir directory. The problem is that in the method "shouldExitPane" I don't have an appropriate rights to modify anything in the directory /usr/local... A solution is to save the file in a location where you can write (such as /tmp or /Users/Shared) and then move the files to the final destination through a postflight (or postinstall) script depending on the package format you're using) because the script will probably be run as root in your situation (if you're requiring admin authorization it will (in Leopard and Snow Leopard)). The pitfall here is that an installer plugin may not be run if the package, metapackage or distribution is installed through installer or ARD. So you need to take this into account too. This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev