Skip to content

Commit

Permalink
Remove release name from opennms.list file to avoid problems with sub…
Browse files Browse the repository at this point in the history
…directories for branches
  • Loading branch information
indigo423 committed May 3, 2016
1 parent 045798c commit 7edd8e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ checkError() {
# Install OpenNMS Debian repository for specific release
installOnmsRepo() {
echo -n "Install OpenNMS Repository ... "
if [ ! -f /etc/apt/sources.list.d/opennms-"${RELEASE}".list ]; then
if [ ! -f /etc/apt/sources.list.d/opennms.list ]; then
printf 'deb http://%s %s main\ndeb-src http://%s %s main' "${MIRROR}" "${RELEASE}" "${MIRROR}" "${RELEASE}" \
> /etc/apt/sources.list.d/opennms-"${RELEASE}".list
> /etc/apt/sources.list.d/opennms.list
checkError ${?}

echo -n "Install OpenNMS Repository Key ... "
Expand All @@ -139,7 +139,7 @@ installOnmsRepo() {
apt-get update 1>/dev/null 2>>${ERROR_LOG}
checkError ${?}
else
echo "SKIP - file opennms-${RELEASE}.list already exist"
echo "SKIP - file opennms.list already exist"
fi
}

Expand Down

0 comments on commit 7edd8e4

Please sign in to comment.