Operating System - HP-UX
1834141 Members
2222 Online
110064 Solutions
New Discussion

Create Directory during the swinstall

 
koff
Frequent Advisor

Create Directory during the swinstall

Hi
I'm trying to packaging in a depot (with SD command) my configuration.
During the postinstall, the downloading files are upload in the management server (via opccfgupld). But i want to create during this step, a /opt//bin directory in the management server, which includes programs (2 program files) which will belong to the depot. Is it possible to do this ? and how ?
Please help-me... =Â
2 REPLIES 2
G. Vrijhoeven
Honored Contributor

Re: Create Directory during the swinstall

Hi,

If i understand correct you like to add two executables in one specific directory during a swinstall.

What you can do on in the kit source is:
create a dir that includes those executables.
like
dirname/executable1
dirname/executable2

and create a fileset in the psf file:

fileset
tag dummy
title ""
description "Dummy file"


file_permissions -o root -g sys
directory = /
file *


end # fileset dummy

In your postinstall script you can ( if you have right as root on the manegement server ( .rhosts /etc/hosts.equiv, sshkeys etc.)
remsh managementserver -n "mkdir /dirname"
rcp //* managementserver:/dirname"

HTH,

Gideon

koff
Frequent Advisor

Re: Create Directory during the swinstall

Thank to tour quick answer !
I'll try this...
but i have another question.
When i create my file depot, i have only the downloading files in my depot when i execute this commande (like in the cookbook SPI) :
./spipac -downloadpath /tmp/ovou/TestSPI
-spiname TestSPI
-outputpath /tmp/ovou/Installer
But where can i include these 2 program files in the depot during the packaging ?
Because, i need these 2 exe in my depot in order to copy them in the directory that i will create like you tell me...
Do you have an idea
Thank you very much !!!
= )