build: disable apache free ports for striker-ui-api

main
Tsu-ba-me 1 year ago committed by Yanhao Lei
parent 3a65915943
commit 9d3f5b6b7f
  1. 2
      anvil.spec.in

@ -257,6 +257,8 @@ getent passwd %{suiapi} >/dev/null \
%{suiapi}
if [ $1 -gt 1 ]; then # >1=Upgrade
# Disable and stop apache to free the port.
systemctl disable --now httpd.service
# Transfer files owned by apache to Striker UI API user.
chown -R --from apache %{suiapi}: /mnt
chown -R --from apache %{suiapi}: %{_localstatedir}/www

Loading…
Cancel
Save