- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Create a SD patch who erase a directory completly
Operating System - HP-UX
1755013
Members
3151
Online
108828
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
Discussions
Discussions
Forums
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
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-03-2005 06:34 AM
тАО02-03-2005 06:34 AM
Create a SD patch who erase a directory completly
Hi, I created a patch who replace somes file, for example
file /tmp/vrfy.ksh /my_tmp/vrfy.ksh
the /tmp/vrfy.ksh patch the /my_tmp/vrfy.ksh and the original /my_tmp/vrfy.ksh file will be save in the /var/adm/sw/save directory (for a future rollback).
But i want to erase a directory completly
for example:
in /my_tmp directory I have 2 file vrfy.ksh and vrfy2.ksh
I want to erase this directory with my directory /tmp who contain only one file
vrfy_new.ksh
When I wrote this
directory /tmp=/my_tmp
file *
After the installation of the patch, the vrfy.ksh and vrfy2.ksh always exists...
I want to remove them, but keep it in the /var/adm/sw/save directory for having the possibility to restore them after a rollback.
Anyone have a solution ?please...
Delphine.
file /tmp/vrfy.ksh /my_tmp/vrfy.ksh
the /tmp/vrfy.ksh patch the /my_tmp/vrfy.ksh and the original /my_tmp/vrfy.ksh file will be save in the /var/adm/sw/save directory (for a future rollback).
But i want to erase a directory completly
for example:
in /my_tmp directory I have 2 file vrfy.ksh and vrfy2.ksh
I want to erase this directory with my directory /tmp who contain only one file
vrfy_new.ksh
When I wrote this
directory /tmp=/my_tmp
file *
After the installation of the patch, the vrfy.ksh and vrfy2.ksh always exists...
I want to remove them, but keep it in the /var/adm/sw/save directory for having the possibility to restore them after a rollback.
Anyone have a solution ?please...
Delphine.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2005 08:01 AM
тАО02-03-2005 08:01 AM
Re: Create a SD patch who erase a directory completly
Delphine,
Are you using Software package builder to build your patch? Whether you are or not, you can have SD run a script (pre-install, pre-configure, post-install, post-configure) that removes the file.
Hope it helps
John
Are you using Software package builder to build your patch? Whether you are or not, you can have SD run a script (pre-install, pre-configure, post-install, post-configure) that removes the file.
Hope it helps
John
Spoon!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2005 07:25 PM
тАО02-03-2005 07:25 PM
Re: Create a SD patch who erase a directory completly
I use the swpackage to build my SD patch.
I know that I can use postinstall.sd script to erase this file, but, when I rollback my patch, I want to restore all files even the erased files.
I try this solution but I don't know if it's correct:
In my PSF file:
directory /tmp=/my_tmp
file vrfy.ksh
# even if this file will be removed, I add it to force the saving of this file in SD directory
file vrf2.ksh
In my postinstall.sd script :
rm -f /tmp/vrf2.ksh
So after the SD patch installation, I have only one file (my patched file): vrfy.ksh
And When I rollback my patch, originals vrfy.ksh and vrfy├Г┬й.ksh were restored
This solution is correct ?
Because I add in my PSF a file which does not need to be patched (vrfy2.ksh) only to save it...
If anyone have another solution...
Thanks a lot
Delphin
I know that I can use postinstall.sd script to erase this file, but, when I rollback my patch, I want to restore all files even the erased files.
I try this solution but I don't know if it's correct:
In my PSF file:
directory /tmp=/my_tmp
file vrfy.ksh
# even if this file will be removed, I add it to force the saving of this file in SD directory
file vrf2.ksh
In my postinstall.sd script :
rm -f /tmp/vrf2.ksh
So after the SD patch installation, I have only one file (my patched file): vrfy.ksh
And When I rollback my patch, originals vrfy.ksh and vrfy├Г┬й.ksh were restored
This solution is correct ?
Because I add in my PSF a file which does not need to be patched (vrfy2.ksh) only to save it...
If anyone have another solution...
Thanks a lot
Delphin
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP