|
@@ -167,28 +167,29 @@ pkg_postinst() {
|
|
|
|
|
|
|
|
|
# if [[ -z "${REPLACING_VERSIONS}" ]] || [[ "$(get_major_version ${REPLACING_VERSIONS})" -lt 4 ]]; then
|
|
|
- if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.*} < 4.0" | bc) -eq 1 ]]; then
|
|
|
- echo
|
|
|
- elog "Important 4.0+ updates"
|
|
|
- elog " - The on-wire protocol version has been changed."
|
|
|
- elog " Versions of Torque before 4.0.0 are no longer able to communicate."
|
|
|
- elog " - pbs_iff has been replaced by trqauthd, you will now need to add"
|
|
|
- elog " trqauthd to your default runlevel."
|
|
|
- fi
|
|
|
+# if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.*} < 4.0" | bc) -eq 1 ]]; then
|
|
|
+# echo
|
|
|
+# elog "Important 4.0+ updates"
|
|
|
+# elog " - The on-wire protocol version has been changed."
|
|
|
+# elog " Versions of Torque before 4.0.0 are no longer able to communicate."
|
|
|
+# elog " - pbs_iff has been replaced by trqauthd, you will now need to add"
|
|
|
+# elog " trqauthd to your default runlevel."
|
|
|
+# fi
|
|
|
|
|
|
local v
|
|
|
-# for v in ${REPLACING_VERSIONS}; do
|
|
|
-# if version_is_at_least 4.0 ${v}; then
|
|
|
-# echo
|
|
|
-# elog "Important 4.0+ updates"
|
|
|
-# elog " - The on-wire protocol version has been changed."
|
|
|
-# elog " Versions of Torque before 4.0.0 are no longer able to communicate."
|
|
|
-# elog " - pbs_iff has been replaced by trqauthd, you will now need to add"
|
|
|
-# elog " trqauthd to your default runlevel."
|
|
|
-# break
|
|
|
-# fi
|
|
|
-# done
|
|
|
-
|
|
|
+ for v in ${REPLACING_VERSIONS}; do
|
|
|
+ if ! version_is_at_least 4.0 ${v}; then
|
|
|
+ echo
|
|
|
+ elog "Important 4.0+ updates"
|
|
|
+ elog " - The on-wire protocol version has been changed."
|
|
|
+ elog " Versions of Torque before 4.0.0 are no longer able to communicate."
|
|
|
+ elog " - pbs_iff has been replaced by trqauthd, you will now need to add"
|
|
|
+ elog " trqauthd to your default runlevel."
|
|
|
+ break
|
|
|
+ fi
|
|
|
+ done
|
|
|
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|