HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Software Distributor - preinstall
Operating System - HP-UX
1829992
Members
3053
Online
109998
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-15-2007 08:47 PM
02-15-2007 08:47 PM
Software Distributor - preinstall
Hi,
we packaging a product (so we build the depot).However, we need to change the SW_LOCATION at install time. so i tried
swinstall -s -x allow_multiple_versions=true ,l=
this works well, however if there is no location specified we need to assign a default location.
can someone tell me how to change the SW_LOCATION from within a preinstall script(or any other script).
cheers,
bharat
we packaging a product (so we build the depot).However, we need to change the SW_LOCATION at install time. so i tried
swinstall -s
this works well, however if there is no location specified we need to assign a default location.
can someone tell me how to change the SW_LOCATION from within a preinstall script(or any other script).
cheers,
bharat
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2007 09:11 PM
02-15-2007 09:11 PM
Re: Software Distributor - preinstall
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2007 10:34 PM
02-15-2007 10:34 PM
Re: Software Distributor - preinstall
Hi ivan,
this document just lists the environmental variables, but it does not explain how to set these variables.
i tried this in my preinstall:
=========================================
#! /bin/sh
UTILS="/usr/lbin/sw/control_utils"
if [ ! -f $UTILS ]; then
fatal_error "Cannot find $UTILS"
fi
. $UTILS
if [ "${SW_LOCATION}" = "/" ]
then
SW_LOCATION="/MY/LOC/"
_R=${SW_LOCATION} export _R
fi
exit 0
=========================================
_R is not document anywhere, but I suspect _R refers to SW_ROOT_DIRECTORY.This does not work however.
cheers,
bharat
this document just lists the environmental variables, but it does not explain how to set these variables.
i tried this in my preinstall:
=========================================
#! /bin/sh
UTILS="/usr/lbin/sw/control_utils"
if [ ! -f $UTILS ]; then
fatal_error "Cannot find $UTILS"
fi
. $UTILS
if [ "${SW_LOCATION}" = "/" ]
then
SW_LOCATION="/MY/LOC/"
_R=${SW_LOCATION} export _R
fi
exit 0
=========================================
_R is not document anywhere, but I suspect _R refers to SW_ROOT_DIRECTORY.This does not work however.
cheers,
bharat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2007 07:47 AM
02-16-2007 07:47 AM
Re: Software Distributor - preinstall
You cannot set these variables usefully in a script. The environment is not passed back to the parent (swagent). I am not sure what you mean by setting a default location. This is easily done in the PSF using the directory attribute (see sd(4)).
If your concern is that you do not want multiple versions to be installed in the same location you need to stop the session using a checkinstall script and inform the user that a value must be passed.
If your concern is that you do not want multiple versions to be installed in the same location you need to stop the session using a checkinstall script and inform the user that a value must be passed.
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