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