I am trying to add a script into an installer to make an alias. Can I not use the ln command in bash? if so is the usage different somehow? ln -s <target> <alias> is what i have tried, I get no error during the script, but also don't see any alias output. I can do the command just fine in terminal and I do require root authorization. Any ideas? I want to create an alias as opposed to installing a premade one..
8 replies to this topic
#1
Posted 26 March 2008 - 07:27 PM
#2
Posted 26 March 2008 - 07:48 PM
ln -s ${1} ${2} works in #!/bin/bash or #!/bin/sh on my machine.
In what context are you trying to use it?
In what context are you trying to use it?
#3
Posted 26 March 2008 - 08:24 PM
Lets make up a file called test that is located in /System/Library/Filesystems/Example of the target Volume $3 and want an alias created in the same volume in /usr/bin. ln -s "$3/System/Library/Filesystems/Example/test" "$3/usr/bin/test" but this is not working. Any help would be appreciated.
#4
Posted 26 March 2008 - 08:46 PM
Where in the installer will this command being called from?
InstallationCheck
VolumeCheck
preflight
postflight...Etc
Is volume referenced by $3 definitely mounted at the point in time in question?
When I said it was working in bash and sh, that was just a quick test from a shell script on my desktop, not from a running Installer. I will try again from my live/install memory stick.
InstallationCheck
VolumeCheck
preflight
postflight...Etc
Is volume referenced by $3 definitely mounted at the point in time in question?
When I said it was working in bash and sh, that was just a quick test from a shell script on my desktop, not from a running Installer. I will try again from my live/install memory stick.
#5
Posted 26 March 2008 - 09:44 PM
Yes the target volume is mounted and defined as $3 during install. This script would be attached as postinstall of a package.
#6
Posted 26 March 2008 - 10:03 PM
Okay, I'll build a pkg and try it. Back in a mo..... Yes, it works fine.
#7
Posted 26 March 2008 - 10:05 PM
#8
Posted 26 March 2008 - 10:14 PM
Here is a link to the pkg I used to run the test.
#9
Posted 05 April 2010 - 12:07 PM
I want to study x-script..
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



Sign In
Create Account










