From 040965430ee95fef2ce6f77536cc107b6c266636 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 14 Mar 2023 09:50:54 +0100 Subject: [PATCH] mod_php_install.sh: some moinor changes in script output.. --- mod_php_install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mod_php_install.sh b/mod_php_install.sh index bbf7501..b726300 100755 --- a/mod_php_install.sh +++ b/mod_php_install.sh @@ -3112,9 +3112,11 @@ fi if [[ "${FPM_RUN_DIR}" =~ ^/run/ ]] ; then + echo "" + echononl "\tCreate Run directory '$FPM_RUN_DIR' .." + if [[ ! -d "${FPM_RUN_DIR}" ]]; then - echononl "Create Run directory '$FPM_RUN_DIR' .." echo "" >> ${_logdir}/main.log echo "## - Create Run directory '$FPM_RUN_DIR'" >> ${_logdir}/main.log echo "## -" >> ${_logdir}/main.log @@ -3128,7 +3130,7 @@ if [[ "${FPM_RUN_DIR}" =~ ^/run/ ]] ; then error "Creating Run directory '$FPM_RUN_DIR' failed!" fi - echononl "Change owner of run directory '$FPM_RUN_DIR'" + echononl "\tChange owner of run directory '$FPM_RUN_DIR'" echo "" >> ${_logdir}/main.log echo "## - Change owner of run directory '$FPM_RUN_DIR'" >> ${_logdir}/main.log echo "## -" >> ${_logdir}/main.log @@ -3142,9 +3144,11 @@ if [[ "${FPM_RUN_DIR}" =~ ^/run/ ]] ; then error "Changing owner of un directory '$FPM_RUN_DIR' failed!" fi + else + echo_skipped fi - echononl "Force systemd to create run directory on each startup.." + echononl "\tForce systemd to create run directory on each startup.." echo "" >> ${_logdir}/main.log echo "## - Force systemd to create run directory on each startup." >> ${_logdir}/main.log echo "## -" >> ${_logdir}/main.log