I'm having a little trouble with a Solaris package build/install.
I have the following entries in my prototype file...
PACKAGE_TYPE is determined by the request script at install time and takes a value of DEV, UA or PROD, so I then want to use that to link my interfaces file to the correct version during installation.
Unfortunately, after installation I get...
From what I can tell in the manual, both source and target paths in a symbolic link entry should expand variables, so does anyone have any idea why mine isn't?
---------- Post updated 10-07-10 at 12:50 PM ---------- Previous update was 10-06-10 at 06:16 PM ----------
After much messing about, I've determined that this...
works but this
doesn't.
It seems this is another example of where the Solaris install works in a shell-like manner but doesn't have full shell functionality.
My solution has been to perform the linking with a postinstall script which works fine. However, that creates an extra file that the original install doesn't know about, so pkgrm doesn't uninstall the package cleanly. To overcome that one, I've added the following to prototype
to register a file ready for uninstall, although the postinstall has changed the link's target.
I have also some difficulty calling sed to change a word in a file.
sed -i 's/docTitl/Outline ${docTitl}/g' $ofln
Moved to new thread, since it is a different question (3 Replies)
I have some simple package installations that have worked in previous versions of Solaris just fine. I can install the packages, then install newer versions right over the top without error. In previous versions I had to specify the -G option during the installation in order for this to work.
... (0 Replies)
Heyas
I'm trying to give some information on used variables.
While the first two work fine, the ones starting with a glob (is that the proper term?) fail.
echo ${!TUI_*} ${!RET_*} ${!*_CLI} ${!*\_GUI}
bash: ${!*_CLI}: bad substitution
Same with @ or have them escaped.
I found no... (2 Replies)
s=`awk '{ print $0}' /Applications/Relink.app/z_cloudline.txt`
sed -n '"$s"' /var/mobile/Library/iFile/Bookmarks.plist > /var/mobile/originalip.txt
What is the problem with that code ?
With variable it only outputs:
sed: -e expression #1, char 1: unknown command: `"'
If I use the... (3 Replies)
I downloaded Solaris 10 OS on x86, SVR4 installer to my desktop and ran digest -a md5 on the downloaded file and the hash values matched. I then ran bunzip2 followed by pkgadd -d SolarisStudio12.3-solaris-x86-pkg and am getting the following error:
pkgadd: ERROR: attempt to process... (14 Replies)
I'm new to UNIX, sort of inherited this job. I have an HP lefthand SAN, where I added 100GB to one of the volumes. As I understand I also have to expand the volume on the server (solaris 10 ) as well. So, how do I do that? The file system is called: sybdump. the mount point is /export/xxx/sybdump.... (19 Replies)
Hi,
I am trying to install a simple gcc package on a sparc (solaris 10) machine using the admin file (called admtest), but it is not working. I am getting the "Select package prompt". Can anyone have a look at it and tell me what am i doing wrong.
# cat admtest
mail=root... (5 Replies)
Hi !
I am making my first steps to make a script. Therefore i try to make a scp command more easier. Given is the following alias:
14='admin@x-abcd-def.xyz
Now i want to let the script read three var's from the console to use them in the script and then build the scp string.
echo... (7 Replies)
Hi,
This is not a question thread, but rather a solution to an issue I have encountered on Solaris 11.
It turns out that pkgadd is not available by default on Solaris 11. The solution is to install it with:
pkg install SUNWpkgcmdsI hope this will save people some time.
Cheers,
... (4 Replies)
I have a question about expanding shell variables. Given the following piece of script:
a="Some text"
b="Other text"
for i in a b
do
string1=$i
echo $string1 --> returns 'a'
string2=EXPRESSION_WITH_$i
echo $string2 --> returns 'Some text'
done
... (2 Replies)