-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symlink from /opt/<component>/var/log
to /var/log/<component>
.
#7999
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,9 +40,11 @@ Built:@BUILT@ | |
%build | ||
|
||
%install | ||
mkdir -p "${RPM_BUILD_ROOT}"/var/log/tomcat | ||
install -d -m 755 ${RPM_BUILD_ROOT}/%{tomcat_home}/ | ||
rmdir logs | ||
mkdir -p "${RPM_BUILD_ROOT}"/var/log/tomcat | ||
cp -R * ${RPM_BUILD_ROOT}/%{tomcat_home}/ | ||
ln -s /var/log/tomcat "${RPM_BUILD_ROOT}"%{tomcat_home}/logs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would a "ln -sf" be a more resilient option here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If adding |
||
|
||
# Remove all webapps. | ||
rm -rf ${RPM_BUILD_ROOT}/%{tomcat_home}/webapps/* | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would a "ln -sf" be a more resilient option here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If adding
-f
ever prevents an error on this line, it means that there was already some file that existed at${RPM_BUILD_ROOT}/opt/traffic_monitor/var/log
. We'd rather know that such a file exists than cover up the error, right?