2007-07-11 09:51:41 +00:00
|
|
|
#!/bin/sh
|
2005-04-27 12:59:53 +00:00
|
|
|
|
|
|
|
##
|
2010-12-06 10:24:59 +00:00
|
|
|
# post-Install Script for Macintosh BOINC Manager for OS X revised 12/6/10
|
2005-04-27 12:59:53 +00:00
|
|
|
##
|
|
|
|
|
2007-02-20 01:39:26 +00:00
|
|
|
echo "initial directory = $PWD"
|
|
|
|
echo "argument 1 = $1"
|
|
|
|
|
2005-04-27 12:59:53 +00:00
|
|
|
cd "$1"
|
2007-02-20 01:39:26 +00:00
|
|
|
|
|
|
|
echo "new directory = $PWD"
|
|
|
|
|
2010-02-10 10:40:58 +00:00
|
|
|
# Copy acct_mgr_url.xml into BOINC Data directory here so it won't be
|
|
|
|
# deleted if user later runs standard BOINC installer
|
|
|
|
if [ -f "Contents/Resources/acct_mgr_url.xml" ]; then
|
|
|
|
cp -fp Contents/Resources/acct_mgr_url.xml "/Library/Application Support/BOINC Data/acct_mgr_url.xml"
|
|
|
|
fi
|
|
|
|
|
2011-10-26 12:12:31 +00:00
|
|
|
# Run the Postinstall Application
|
2010-11-22 13:36:38 +00:00
|
|
|
if [ "${COMMAND_LINE_INSTALL}" = "1" ]; then
|
|
|
|
rm -f /tmp/BOINCInstallLog.txt
|
|
|
|
Contents/Resources/PostInstall.app/Contents/MacOS/PostInstall -part1 >> /tmp/BOINCInstallLog.txt
|
2010-12-06 10:24:59 +00:00
|
|
|
sleep 2
|
2010-11-22 13:36:38 +00:00
|
|
|
Contents/Resources/PostInstall.app/Contents/MacOS/PostInstall -part2 & >> /tmp/BOINCInstallLog.txt
|
|
|
|
else
|
2006-06-21 13:09:19 +00:00
|
|
|
Contents/Resources/PostInstall.app/Contents/MacOS/PostInstall -part1
|
2010-12-06 10:24:59 +00:00
|
|
|
sleep 2
|
2006-06-21 13:09:19 +00:00
|
|
|
Contents/Resources/PostInstall.app/Contents/MacOS/PostInstall -part2 &
|
2010-11-22 13:36:38 +00:00
|
|
|
fi
|
2005-05-22 12:44:44 +00:00
|
|
|
|
|
|
|
exit 0
|