-
Notifications
You must be signed in to change notification settings - Fork 6
Add /opt/stackdriver/stack-config for backward compatibility. #52
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
Open
igorpeshansky
wants to merge
1
commit into
stackdriver-agent-5.5.2
Choose a base branch
from
igorpeshansky-add-dummy-stack-config
base: stackdriver-agent-5.5.2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
debian/collectd.conf etc/stackdriver/ | ||
debian/stack-config opt/stackdriver/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,7 @@ Source1: curl-%{curl_version}.tar.bz2 | |
Source200: stackdriver-agent | ||
Source201: collectd.conf | ||
Source202: stackdriver.sysconfig | ||
Source203: stack-config | ||
BuildRequires: perl(ExtUtils::MakeMaker) | ||
BuildRequires: perl(ExtUtils::Embed) | ||
BuildRequires: python-devel | ||
|
@@ -237,6 +238,7 @@ popd | |
%{__install} -Dp -m0755 %{SOURCE200} %{buildroot}/%{_initddir}/stackdriver-agent | ||
%{__install} -Dp -m0644 %{SOURCE201} %{buildroot}/%{_confdir}/collectd.conf | ||
%{__install} -Dp -m0644 %{SOURCE202} %{buildroot}/etc/sysconfig/stackdriver | ||
%{__install} -Dp -m0755 %{SOURCE203} %{buildroot}/opt/stackdriver/stack-config | ||
|
||
%{__install} -d -m0755 %{buildroot}/%{_datadir}/collectd/collection3/ | ||
|
||
|
@@ -365,6 +367,9 @@ fi | |
%{_initddir}/stackdriver-agent | ||
%config(noreplace) /etc/sysconfig/stackdriver | ||
|
||
# Backward compatibility. | ||
%dir /opt/stackdriver | ||
/opt/stackdriver/stack-config | ||
|
||
%changelog | ||
* Mon Oct 16 2017 Stackdriver Agents <[email protected]> 5.5.2-372 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
# This file is intentionally left blank. | ||
# It only exists for backward compatibility. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can you add instructions here and in stack-config about when the stack-config file and these two lines can be deleted (if ever)? Thanks.
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.
It may also be worthwhile to add comments in the other files for the stack-config lines.
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.
I don't believe it can ever be removed, unless we want to break the old installation commands (using
stack-config --write-gcm
, which are embedded in lots of systems at this point). But it's empty, so what's the harm?