From 82e15d493a4c202e1bb87a31d9ced58e2f90ad53 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 13 Nov 2022 23:22:15 +0100 Subject: [PATCH] install_sympa.sh: service file for 'wwwsympa' has changed in the source .a. --- install_sympa.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/install_sympa.sh b/install_sympa.sh index d2ff079..1beb6bf 100755 --- a/install_sympa.sh +++ b/install_sympa.sh @@ -2973,6 +2973,36 @@ if [[ -f "${_builddir}/src/etc/script/wwsympa.service" ]]; then fi +elif [[ -f "${_builddir}/service/wwsympa-spawn-fcgi.service" ]] ; then + + # - Copy wwsympa-spawn-fcgi.service systemd unit file to SYMPA_SYSTEMD_DIR + # - + echo "" >> $_log_file + echo "## - Copy 'wwsympa-spawn-fcgi.service' to '${SYMPA_SYSTEMD_DIR}/wwsympa.service'.." >> $_log_file + echo "## -" >> $_log_file + echo "cp \"${_builddir}/service/wwsympa-spawn-fcgi.service\" \"${SYMPA_SYSTEMD_DIR}/wwsympa.service\"" >> $_log_file + echononl "\tCopy 'wwsympa-spawn-fcgi.service' to '${SYMPA_SYSTEMD_DIR}'.." + cp "${_builddir}/service/wwsympa-spawn-fcgi.service" "${SYMPA_SYSTEMD_DIR}/wwsympa.service" >> $_log_file 2>&1 + if [ "$?" = "0" ]; then + echo_ok + else + echo_failed + error "Copying 'wwsympa-spawn-fcgi.service' to '${SYMPA_SYSTEMD_DIR}/wwsympa.service' failed! \n + See '$_log_file' for further informations." + echononl "continue anyway [yes/no]: " + read OK + OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" + while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do + echononl "Wrong entry! - repeat [yes/no]: " + read OK + done + [[ $OK = "yes" ]] || fatal "Abbruch durch User" + + fi + +fi + +if [[ -f "${SYMPA_SYSTEMD_DIR}/wwsympa.service" ]] ; then # - Adjust unit file wwsympa.service # - _failed=false