HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I get SW_LOCATION environment variable valu...
Operating System - HP-UX
1830936
Members
2007
Online
110017
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2001 06:32 AM
02-06-2001 06:32 AM
How do I get SW_LOCATION environment variable value to be picked up by swinstall
Hi,
I want to create a package which can be installed to any user defined directory.
I have modified my .psf file in the following way:
in the product section:
is_locatable true
directory /
Then within each fileset, I have defined the destination of files and directories to be relative to the value of $SW_LOCATION. i.e.:
an entry might look like:
directory ./image/perl/lib/B=/perl/lib/B
Therefore, I want the value of $SW_LOCATION to be prepended to the destination value.
I have also modified my preinstall and postinstall scripts.
They check to see if $SW_LOCATION is set, and if it is, then no action is taken.
otherwise, $SW_LOCATION is set to a default value.
I create the package successfully and then set $SW_LOCATION to my desired value.
I run swinstall, but my files keeep on been put under the root '/' directory.
Can anybody help?
This is quite urgent and I'd really appreciate some help.
Alternatively, can you suggest other places I can ask for help?
Many thanks,
Tim Culhane
I want to create a package which can be installed to any user defined directory.
I have modified my .psf file in the following way:
in the product section:
is_locatable true
directory /
Then within each fileset, I have defined the destination of files and directories to be relative to the value of $SW_LOCATION. i.e.:
an entry might look like:
directory ./image/perl/lib/B=/perl/lib/B
Therefore, I want the value of $SW_LOCATION to be prepended to the destination value.
I have also modified my preinstall and postinstall scripts.
They check to see if $SW_LOCATION is set, and if it is, then no action is taken.
otherwise, $SW_LOCATION is set to a default value.
I create the package successfully and then set $SW_LOCATION to my desired value.
I run swinstall, but my files keeep on been put under the root '/' directory.
Can anybody help?
This is quite urgent and I'd really appreciate some help.
Alternatively, can you suggest other places I can ask for help?
Many thanks,
Tim Culhane
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2001 06:46 AM
02-06-2001 06:46 AM
Re: How do I get SW_LOCATION environment variable value to be picked up by swinstall
Haven't done this for a while, but to me, it looks like your directory statement is wrong :-
directory ./image/perl/lib/B=/perl/lib/B
Your specifying an absolute path. Try :-
directory ./image/perl/lib/B=.
directory ./image/perl/lib/B=/perl/lib/B
Your specifying an absolute path. Try :-
directory ./image/perl/lib/B=.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP