if [[ "${link_target}" != "${canon_path_target_jar}" ]] ; then
info "Symlink '${CYAN}${MC_SERVER_CUR_LINK_BASE}${NORMAL}' must be corrected."
LN -sf "${TARGET_JAR}" "${MC_SERVER_CUR_LINK_BASE}"
+ CHOWN -h "${MC_USER}:${MC_GROUP}" "${MC_SERVER_CUR_LINK_BASE}"
NEED_RESTART='y'
symlink_was_set="y"
fi
info "Symlink '${CYAN}${MC_SERVER_CUR_LINK_BASE}${NORMAL}' does not exists, will be created."
LN -sf "${TARGET_JAR}" "${MC_SERVER_CUR_LINK_BASE}"
+ CHOWN -h "${MC_USER}:${MC_GROUP}" "${MC_SERVER_CUR_LINK_BASE}"
NEED_RESTART='y'
symlink_was_set="y"
fi
info "Sending mail to <${MAIL_TO_ADDRESS}>"
- echo "${MAIL_BODY}" | mailx --return-address="${MAIL_RETURN_ADDRESS}" \
+ echo -e "${MAIL_BODY}" | mailx --return-address="${MAIL_RETURN_ADDRESS}" \
--append="From: ${MAIL_FROM_ADDRESS}" --subject="${subject}" "${MAIL_TO_ADDRESS}"
}