postinstall and postremove script not working
Clash Royale CLAN TAG#URR8PPP
I am installing a package in Solaris server, my postinstallation and postremove file are kept in below path:
/export/home/username/ABC/root/opt/ABC/bin
I have added this path in prototype file like below
f none /opt/NCRlu/bin/postinstall=/export/home/username/ABC/root/opt/ABC/bin/postinstall 0755 root other
f none/opt/NCRlu/bin/postremove=/export/home/username/ABC/root/opt/ABC/bin/
postremove 0755 root other
and made changes in pkginfo and pkgmap, I am using make command to create package. when I install the package it says installation successful. But the script which is kept in postinstall and postremove, that is not working. What changes shall I do, so that my package work properly.Shall I change the path of postinstall and postremove?
solaris pkg
add a comment |
I am installing a package in Solaris server, my postinstallation and postremove file are kept in below path:
/export/home/username/ABC/root/opt/ABC/bin
I have added this path in prototype file like below
f none /opt/NCRlu/bin/postinstall=/export/home/username/ABC/root/opt/ABC/bin/postinstall 0755 root other
f none/opt/NCRlu/bin/postremove=/export/home/username/ABC/root/opt/ABC/bin/
postremove 0755 root other
and made changes in pkginfo and pkgmap, I am using make command to create package. when I install the package it says installation successful. But the script which is kept in postinstall and postremove, that is not working. What changes shall I do, so that my package work properly.Shall I change the path of postinstall and postremove?
solaris pkg
1
By "not working" do you mean they're not called (during package installation & package removal) or that they run but have errors? I would point out that you have two "postremove" lines when you might have meant to include a postinstall line?
– Jeff Schaller
Jan 3 at 13:39
No, postinstall and postremove are not getting called, that is what I am asking where shall I put those files so that they get called. I am not getting any kind of error because the script which is kept in postinstall and postremove that works perfectly if it is executed individually. Sorry for "postremove" .I wrote here that by mistake, I have corrected that
– tani joshi
Jan 3 at 13:44
add a comment |
I am installing a package in Solaris server, my postinstallation and postremove file are kept in below path:
/export/home/username/ABC/root/opt/ABC/bin
I have added this path in prototype file like below
f none /opt/NCRlu/bin/postinstall=/export/home/username/ABC/root/opt/ABC/bin/postinstall 0755 root other
f none/opt/NCRlu/bin/postremove=/export/home/username/ABC/root/opt/ABC/bin/
postremove 0755 root other
and made changes in pkginfo and pkgmap, I am using make command to create package. when I install the package it says installation successful. But the script which is kept in postinstall and postremove, that is not working. What changes shall I do, so that my package work properly.Shall I change the path of postinstall and postremove?
solaris pkg
I am installing a package in Solaris server, my postinstallation and postremove file are kept in below path:
/export/home/username/ABC/root/opt/ABC/bin
I have added this path in prototype file like below
f none /opt/NCRlu/bin/postinstall=/export/home/username/ABC/root/opt/ABC/bin/postinstall 0755 root other
f none/opt/NCRlu/bin/postremove=/export/home/username/ABC/root/opt/ABC/bin/
postremove 0755 root other
and made changes in pkginfo and pkgmap, I am using make command to create package. when I install the package it says installation successful. But the script which is kept in postinstall and postremove, that is not working. What changes shall I do, so that my package work properly.Shall I change the path of postinstall and postremove?
solaris pkg
solaris pkg
edited 2 days ago
Rui F Ribeiro
39.5k1479132
39.5k1479132
asked Jan 3 at 13:33
tani joshitani joshi
92
92
1
By "not working" do you mean they're not called (during package installation & package removal) or that they run but have errors? I would point out that you have two "postremove" lines when you might have meant to include a postinstall line?
– Jeff Schaller
Jan 3 at 13:39
No, postinstall and postremove are not getting called, that is what I am asking where shall I put those files so that they get called. I am not getting any kind of error because the script which is kept in postinstall and postremove that works perfectly if it is executed individually. Sorry for "postremove" .I wrote here that by mistake, I have corrected that
– tani joshi
Jan 3 at 13:44
add a comment |
1
By "not working" do you mean they're not called (during package installation & package removal) or that they run but have errors? I would point out that you have two "postremove" lines when you might have meant to include a postinstall line?
– Jeff Schaller
Jan 3 at 13:39
No, postinstall and postremove are not getting called, that is what I am asking where shall I put those files so that they get called. I am not getting any kind of error because the script which is kept in postinstall and postremove that works perfectly if it is executed individually. Sorry for "postremove" .I wrote here that by mistake, I have corrected that
– tani joshi
Jan 3 at 13:44
1
1
By "not working" do you mean they're not called (during package installation & package removal) or that they run but have errors? I would point out that you have two "postremove" lines when you might have meant to include a postinstall line?
– Jeff Schaller
Jan 3 at 13:39
By "not working" do you mean they're not called (during package installation & package removal) or that they run but have errors? I would point out that you have two "postremove" lines when you might have meant to include a postinstall line?
– Jeff Schaller
Jan 3 at 13:39
No, postinstall and postremove are not getting called, that is what I am asking where shall I put those files so that they get called. I am not getting any kind of error because the script which is kept in postinstall and postremove that works perfectly if it is executed individually. Sorry for "postremove" .I wrote here that by mistake, I have corrected that
– tani joshi
Jan 3 at 13:44
No, postinstall and postremove are not getting called, that is what I am asking where shall I put those files so that they get called. I am not getting any kind of error because the script which is kept in postinstall and postremove that works perfectly if it is executed individually. Sorry for "postremove" .I wrote here that by mistake, I have corrected that
– tani joshi
Jan 3 at 13:44
add a comment |
1 Answer
1
active
oldest
votes
To have the postinstall & postremove scripts run and not just installed as normal files, they need to have a type of "i" not "f", and no path:
i postinstall=/export/home/username/ABC/root/opt/ABC/bin/postinstall
i postremove=/export/home/username/ABC/root/opt/ABC/bin/postremove
See examples in https://docs.oracle.com/cd/E26505_01/html/E28550/ch5pkgcasestudies-79.html
in which path these files(postinstall and postremove) needs to be kept? in the same directory where 'pkginfo', 'pkgmap' and 'prototype' exists?
– tani joshi
Jan 4 at 10:49
If you put them in that directory, you won't need to specify a path to them as shown above.
– alanc
Jan 5 at 18:20
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492247%2fpostinstall-and-postremove-script-not-working%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
To have the postinstall & postremove scripts run and not just installed as normal files, they need to have a type of "i" not "f", and no path:
i postinstall=/export/home/username/ABC/root/opt/ABC/bin/postinstall
i postremove=/export/home/username/ABC/root/opt/ABC/bin/postremove
See examples in https://docs.oracle.com/cd/E26505_01/html/E28550/ch5pkgcasestudies-79.html
in which path these files(postinstall and postremove) needs to be kept? in the same directory where 'pkginfo', 'pkgmap' and 'prototype' exists?
– tani joshi
Jan 4 at 10:49
If you put them in that directory, you won't need to specify a path to them as shown above.
– alanc
Jan 5 at 18:20
add a comment |
To have the postinstall & postremove scripts run and not just installed as normal files, they need to have a type of "i" not "f", and no path:
i postinstall=/export/home/username/ABC/root/opt/ABC/bin/postinstall
i postremove=/export/home/username/ABC/root/opt/ABC/bin/postremove
See examples in https://docs.oracle.com/cd/E26505_01/html/E28550/ch5pkgcasestudies-79.html
in which path these files(postinstall and postremove) needs to be kept? in the same directory where 'pkginfo', 'pkgmap' and 'prototype' exists?
– tani joshi
Jan 4 at 10:49
If you put them in that directory, you won't need to specify a path to them as shown above.
– alanc
Jan 5 at 18:20
add a comment |
To have the postinstall & postremove scripts run and not just installed as normal files, they need to have a type of "i" not "f", and no path:
i postinstall=/export/home/username/ABC/root/opt/ABC/bin/postinstall
i postremove=/export/home/username/ABC/root/opt/ABC/bin/postremove
See examples in https://docs.oracle.com/cd/E26505_01/html/E28550/ch5pkgcasestudies-79.html
To have the postinstall & postremove scripts run and not just installed as normal files, they need to have a type of "i" not "f", and no path:
i postinstall=/export/home/username/ABC/root/opt/ABC/bin/postinstall
i postremove=/export/home/username/ABC/root/opt/ABC/bin/postremove
See examples in https://docs.oracle.com/cd/E26505_01/html/E28550/ch5pkgcasestudies-79.html
answered Jan 3 at 17:25
alancalanc
2,6081122
2,6081122
in which path these files(postinstall and postremove) needs to be kept? in the same directory where 'pkginfo', 'pkgmap' and 'prototype' exists?
– tani joshi
Jan 4 at 10:49
If you put them in that directory, you won't need to specify a path to them as shown above.
– alanc
Jan 5 at 18:20
add a comment |
in which path these files(postinstall and postremove) needs to be kept? in the same directory where 'pkginfo', 'pkgmap' and 'prototype' exists?
– tani joshi
Jan 4 at 10:49
If you put them in that directory, you won't need to specify a path to them as shown above.
– alanc
Jan 5 at 18:20
in which path these files(postinstall and postremove) needs to be kept? in the same directory where 'pkginfo', 'pkgmap' and 'prototype' exists?
– tani joshi
Jan 4 at 10:49
in which path these files(postinstall and postremove) needs to be kept? in the same directory where 'pkginfo', 'pkgmap' and 'prototype' exists?
– tani joshi
Jan 4 at 10:49
If you put them in that directory, you won't need to specify a path to them as shown above.
– alanc
Jan 5 at 18:20
If you put them in that directory, you won't need to specify a path to them as shown above.
– alanc
Jan 5 at 18:20
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492247%2fpostinstall-and-postremove-script-not-working%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
By "not working" do you mean they're not called (during package installation & package removal) or that they run but have errors? I would point out that you have two "postremove" lines when you might have meant to include a postinstall line?
– Jeff Schaller
Jan 3 at 13:39
No, postinstall and postremove are not getting called, that is what I am asking where shall I put those files so that they get called. I am not getting any kind of error because the script which is kept in postinstall and postremove that works perfectly if it is executed individually. Sorry for "postremove" .I wrote here that by mistake, I have corrected that
– tani joshi
Jan 3 at 13:44