In the install command in the .spec file, I have some commands that only apply to the machine on which RPM will be installed Mainly:
preventing% 2 pm www # The problem is here rm -rf $ RPM_BUILD_ROOT cp -r * $ RPM_BUILD_ROOT / rm -rf / home / ec2-user / APP-Name MKDIR-P / Home / Ec2-user / APP-NAME cp -r * / home / ec2-user / APP-NAME / * pm2 start / home / ec2-user / APP-NAME / bin / www
< P> While rpmbuild is running
I get an error saying that I do not get it. Since RPM is built on a Jenkins box, it is definitely not found. I have a separate box on which RPM will be installed, and of course, pm2 is installed. My understanding is that the box on which the RPM has been created, does not have to be kept in the library or binary, used in the established instructions. Is that right?
Besides, can anyone think of a better way of writing the shell script of the installed directory? This is my fire node. Js is deploying
% install
to install in a temporary location RPM will bundle them where RPM will bundle them.
% post
after installation is to run the command on the target machine.
It seems that you are trying to stop a service, you will do this in % pre
.
No comments:
Post a Comment