• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Packagemaker and using scripts with Sudo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Packagemaker and using scripts with Sudo


  • Subject: RE: Packagemaker and using scripts with Sudo
  • From: "Perbix, Michael" <email@hidden>
  • Date: Mon, 30 Jul 2007 11:09:00 -0400
  • Thread-topic: Packagemaker and using scripts with Sudo

If I am correct, and you have the admin authentication option checked, then you do not need SUDO in the script, as the script will run with admin rights.  As for the postflight, postinstall etc...that depends on exactly what you are trying to do....but the bottom line it...

Make sure the script is executable for all
Make sure it is called postinstall with no extenion
make sure you are not doing any sudo type stuff in the script.

    -Mike

------------------------------------------
Michael Perbix
Lower Merion School District
Telecommunications Specialist
PH (610) 645-1964
Fax (610) 896-2019

________________________________

From: installer-dev-bounces+perbix=email@hidden on behalf of Kevin Steele
Sent: Mon 7/30/2007 9:50 AM
To: Stéphane Sudre
Cc: email@hidden
Subject: Re: Packagemaker and using scripts with Sudo



Here is a link to the package
https://bigfile.bcm.tmc.edu/outbound/ksteele/package project.zip

Checked permissions and executable just to be sure

Here is a link to the script file, and two certs that need to be installed.
https://bigfile.bcm.tmc.edu/outbound/ksteele/Extras.zip

On 7/30/07, Stéphane Sudre <email@hidden> wrote:
>
> On lundi, juillet 30, 2007, at 03:39  AM, Kevin Steele wrote:
>
> > On 7/29/07, Stéphane Sudre <email@hidden> wrote:
> >>
> >> On dimanche, juillet 29, 2007, at 05:38  AM, Kevin Steele wrote:
> >>
> >>> [...]
> >>>
> >>> As far as I can tell, the script does not run on install even when I
> >>> setup the package to require admin or root access.  I'm not sure what
> >>> I'm doing wrong, and some suggestions would be nice.  Thanks
> >>
> >> postinstall scripts are only called on the first install of a package.
> >> If you have previously installed this package during your tests, there
> >> is a receipt of this package in /Library/Receipts or
> >> ~/Library/Receipts.
> >>
> >> If you want this script to be run for every install, you need to move
> >> to a postflight script.
> >
> > I changed the Bash script from postinstall to postflight, removed the
> > receipts anyway, and the script still does't run.  I also tried naming
> > the script with explicit extension postflight.sh and that didn't seem
> > to work either. Here is the install log.
>
> There should be no extension. Are the permissions correct? (executable
> flag?)
>
> Maybe you can create a small test case so that someone can have a look
> at it.
>
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Packagemaker and using scripts with Sudo (From: "Kevin Steele" <email@hidden>)
 >Re: Packagemaker and using scripts with Sudo (From: Stéphane Sudre <email@hidden>)
 >Re: Packagemaker and using scripts with Sudo (From: "Kevin Steele" <email@hidden>)

  • Prev by Date: Re: Packagemaker and using scripts with Sudo
  • Next by Date: Re: Packagemaker and using scripts with Sudo
  • Previous by thread: Re: Packagemaker and using scripts with Sudo
  • Next by thread: Re: Packagemaker and using scripts with Sudo
  • Index(es):
    • Date
    • Thread