b5934: Remove old comments and wantedBy.

This commit is contained in:
Thomas Stokes committed 2024-05-06 23:51:44 +02:00
1 parent 1a40d9fa53
commit 27f7df4897
1 file changed
+2 -3
@@ -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"
ExecStart=/bin/bash -c "cd /etc/httpd; [[ -e conf.d/welcome.conf ]] && rm -f conf.d/welcome.conf"