Skip to content

Commit

Permalink
Fixup the debian install path (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwander committed Mar 6, 2017
1 parent 118cfc4 commit c2ca6d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public String getPrimaryConfigContents() {
return configContents.getOrDefault(primaryConfigFile, "");
}

public ProfileConfig setConfig(String path, String config) {
configContents.put(path, config);
return this;
}

public ProfileConfig extendConfig(String path, String config) {
config = configContents.getOrDefault(path, "") + "\n" + config;
configContents.put(path, config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public ProfileConfig getFullConfig(String deploymentName, SpinnakerEndpoints end
ProfileConfig result = generateFullConfig(getBaseConfig(deploymentConfiguration),
deploymentConfiguration,
endpoints);
result.extendConfig(result.getPrimaryConfigFile(), EDIT_WARNING + result.getPrimaryConfigContents());
result.setConfig(result.getPrimaryConfigFile(), EDIT_WARNING + result.getPrimaryConfigContents());
return result;
}

Expand Down
6 changes: 5 additions & 1 deletion halyard-deploy/src/main/resources/debian/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function add_spinnaker_apt_repository() {
echo "$gpg" | apt-key add -
fi
fi
echo "deb $REPOSITORY_URL $DISTRIB_CODENAME spinnaker" | tee /etc/apt/sources.list.d/spinnaker-dev.list > /dev/null
echo "deb $REPOSITORY_URL $DISTRIB_CODENAME spinnaker" | tee /etc/apt/sources.list.d/spinnaker-hal.list > /dev/null
}

function add_java_apt_repository() {
Expand Down Expand Up @@ -160,4 +160,8 @@ if [ -n "$INSTALL_SPINNAKER" ]; then
if contains "${SPINNAKER_ARTIFACTS[@]}" "deck"; then
install_apache2
fi

mkdir -p /opt/spinnaker/config/
chown spinnaker /opt/spinnaker/config/
mv ${CONFIG_DIR}/*.yml /opt/spinnaker/config/
fi

0 comments on commit c2ca6d4

Please sign in to comment.