• 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: Iceberg installation fails when using scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Iceberg installation fails when using scripts


  • Subject: Re: Iceberg installation fails when using scripts
  • From: Vikram Singh <email@hidden>
  • Date: Sat, 11 Aug 2012 19:21:50 +0530

First line of your shell scripts should be #!/bin/sh  (which is called shebang).

On Aug 11, 2012 7:14 PM, "Beatrix Willius" <email@hidden> wrote:
Hi,

taking first steps with Iceberg I have a problem:

As soon as I add a script (both preflight and postflight) to my installer then I get the error message "Installation failed" when trying to install the package.

Where can I get information why the installation failed?

The scripts themselves are quite simple:

Postflight:
#/bin/sh
theschedule=`defaults read com.mothsoftware.mailarchiverx Schedule_TimeFrame`
thevalue='No Schedule'
if [ "$theschedule"=="$thevalue" ]; then echo ''; else open /Applications/Mail\ Archiver\ X/Mail\ Archiver\ X.app/Contents/Mail\ Archiver\ Scheduler.app; fi

Preflight:
#/bin/sh
thepid=`ps ux | awk '/Mail Archiver Scheduler/ && !/awk/ {print $2}'`
kill $thepid

I'm also a newbie in shell programming. The scripts themselves work. But do I need to do something special to the scripts? These are just text files that I gave execute permission.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals


 _______________________________________________
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

  • Follow-Ups:
    • Re: Iceberg installation fails when using scripts
      • From: Beatrix Willius <email@hidden>
References: 
 >Iceberg installation fails when using scripts (From: Beatrix Willius <email@hidden>)

  • Prev by Date: Iceberg installation fails when using scripts
  • Next by Date: Re: Iceberg installation fails when using scripts
  • Previous by thread: Iceberg installation fails when using scripts
  • Next by thread: Re: Iceberg installation fails when using scripts
  • Index(es):
    • Date
    • Thread