Skip to content

Commit

Permalink
Merge pull request #6842 from OpenNMS/jira/NMS-16213-post-install-text
Browse files Browse the repository at this point in the history
NMS-16213: add pointer to contact page and email
  • Loading branch information
Benjamin Reed authored Nov 7, 2023
2 parents 37a3879 + 8fa5bc0 commit 9fb6314
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,16 @@ public void execute() throws OnmsUpgradeException {
}
}
}
log("\n*** Thanks for using OpenNMS!\n");
log("***\n");
log("*** Consider joining our active and supportive online community through\n");
log("***\n");
log("*** https://www.opennms.com/participate/\n");
log("***\n");
log("*** To connect with users, testers, experts, and contributors.\n");
log("***\n");
log("*** Or email us directly at [email protected] to learn more.\n");

log("\nUpgrade completed successfully!\n");
Logging.setContextMap(mdc);
}
Expand Down
12 changes: 11 additions & 1 deletion debian/opennms-server.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,20 @@ case "$1" in
/usr/share/opennms/bin/update-package-permissions opennms-server

echo ""
echo " *** Thanks for using OpenNMS!"
echo " ***"
echo " *** Consider joining our active and supportive online community through"
echo " ***"
echo " *** https://www.opennms.com/participate/"
echo " ***"
echo " *** To connect with users, testers, experts, and contributors."
echo " ***"
echo " *** Or email us directly at [email protected] to learn more."
echo " ***"
echo " *** Installation complete. You must still run the installer at"
echo " *** \$OPENNMS_HOME/bin/install to be sure your database is up"
echo " *** to date before you start OpenNMS. See the install guide and"
echo " *** release notes for details at https://docs.opennms.com."
echo " *** release notes for details at: https://docs.opennms.com"
echo ""
;;
abort-upgrade|abort-remove|abort-deconfigure)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,17 @@ rm -rf "${MINIONHOME}/.m2"

#DEBHELPER#

echo ""
echo " *** Thanks for using OpenNMS!"
echo " ***"
echo " *** Consider joining our active and supportive online community through"
echo " ***"
echo " *** https://www.opennms.com/participate/"
echo " ***"
echo " *** To connect with users, testers, experts, and contributors."
echo " ***"
echo " *** Or email us directly at [email protected] to learn more."
echo " ***"
echo ""

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,17 @@ rm -rf "${SENTINELHOME}/.m2"

#DEBHELPER#

echo ""
echo " *** Thanks for using OpenNMS!”
echo " ***
echo " *** Consider joining our active and supportive online community through”
echo " ***
echo " *** https://www.opennms.com/participate/”
echo " ***
echo " *** To connect with users, testers, experts, and contributors.”
echo " ***
echo " *** Or email us directly at [email protected] to learn more.”
echo " ***
echo ""

exit 0
10 changes: 10 additions & 0 deletions opennms-install/src/main/java/org/opennms/install/Installer.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,16 @@ public void install(final String[] argv) throws Exception {
resetWebAppAdminPassword();
}

System.out.println();
System.out.println("*** Thanks for using OpenNMS!");
System.out.println("***");
System.out.println("*** Consider joining our active and supportive online community through");
System.out.println("***");
System.out.println("*** https://www.opennms.com/participate/");
System.out.println("***");
System.out.println("*** To connect with users, testers, experts, and contributors.");
System.out.println("***");
System.out.println("*** Or email us directly at [email protected] to learn more.");
System.out.println();
System.out.println("Installer completed successfully!");

Expand Down
13 changes: 13 additions & 0 deletions tools/packages/minion/minion.spec
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,19 @@ rm -rf "${ROOT_INST}/repositories/.local"

"${ROOT_INST}/bin/update-package-permissions" "%{name}"

echo ""
echo " *** Thanks for using OpenNMS!
echo " ***”
echo " *** Consider joining our active and supportive online community through”
echo " ***”
echo " *** https://www.opennms.com/participate/”
echo " ***”
echo " *** To connect with users, testers, experts, and contributors.”
echo " ***”
echo " *** Or email us directly at [email protected] to learn more.”
echo " ***”
echo ""

### PRE-UN-INSTALLATION ###

%preun -p /bin/bash
Expand Down
14 changes: 12 additions & 2 deletions tools/packages/opennms/opennms.spec
Original file line number Diff line number Diff line change
Expand Up @@ -940,10 +940,20 @@ fi
"${ROOT_INST}/bin/ensure-user-ping.sh" || echo "WARNING: Unable to enable ping by the opennms user. Try running /usr/share/opennms/bin/ensure-user-ping.sh manually."

echo ""
echo " *** Installation complete. You must still run the installer at"
echo " *** Thanks for using OpenNMS!
echo " ***”
echo " *** Consider joining our active and supportive online community through”
echo " ***”
echo " *** https://www.opennms.com/participate/”
echo " ***”
echo " *** To connect with users, testers, experts, and contributors.”
echo " ***”
echo " *** Or email us directly at [email protected] to learn more.”
echo " ***”
echo " *** Installation is complete. You must still run the installer at"
echo " *** \$OPENNMS_HOME/bin/install -dis to be sure your database is up"
echo " *** to date before you start OpenNMS. See the install guide and"
echo " *** release notes for details at https://docs.opennms.com."
echo " *** release notes for details at: https://docs.opennms.com"
echo ""

%postun -p /bin/bash core
Expand Down
13 changes: 13 additions & 0 deletions tools/packages/sentinel/sentinel.spec
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,19 @@ fi

"${ROOT_INST}/bin/update-package-permissions" "%{name}"

echo ""
echo " *** Thanks for using OpenNMS!
echo " ***”
echo " *** Consider joining our active and supportive online community through”
echo " ***”
echo " *** https://www.opennms.com/participate/”
echo " ***”
echo " *** To connect with users, testers, experts, and contributors.”
echo " ***”
echo " *** Or email us directly at [email protected] to learn more.”
echo " ***”
echo ""

%preun -p /bin/bash
ROOT_INST="${RPM_INSTALL_PREFIX0}"
[ -z "${ROOT_INST}" ] && ROOT_INST="%{sentinelinstprefix}"
Expand Down

0 comments on commit 9fb6314

Please sign in to comment.