From 27f7df489752dd37e4874f491e684cd744278f5d Mon Sep 17 00:00:00 2001 From: Thomas Stokes Date: Mon, 6 May 2024 23:51:44 +0200 Subject: [PATCH] b5934: Remove old comments and wantedBy. --- .../files/etc/systemd/system/remove-welcome-conf.service | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configuration/environments_scripts/central_reverse_proxy/files/etc/systemd/system/remove-welcome-conf.service b/configuration/environments_scripts/central_reverse_proxy/files/etc/systemd/system/remove-welcome-conf.service index 2524b856cc9..1900c57d2ef 100644 --- a/configuration/environments_scripts/central_reverse_proxy/files/etc/systemd/system/remove-welcome-conf.service +++ b/configuration/environments_scripts/central_reverse_proxy/files/etc/systemd/system/remove-welcome-conf.service @@ -3,11 +3,10 @@ Description=Removes welcome.conf. Requires=-.mount network-online.target After=-.mount network-online.target Before=httpd.service get-latest-httpd-conf.service -# Staring before means no "systemctl start httpd" is needed. [Install] RequiredBy=multi-user.target -WantedBy=httpd.service get-latest-httpd-conf.service +WantedBy=httpd.service [Service] Type=oneshot RemainAfterExit=true -ExecStart=/bin/bash -c "cd /etc/httpd; if [[ -e conf.d/welcome.conf ]]; then rm -f conf.d/welcome.conf; fi" \ No newline at end of file +ExecStart=/bin/bash -c "cd /etc/httpd; [[ -e conf.d/welcome.conf ]] && rm -f conf.d/welcome.conf" \ No newline at end of file