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

main
Tsu-ba-me 1 year ago committed by digimer
parent b9eb80f1f9
commit da79a67c97
  1. 2
      anvil.spec.in

@ -257,6 +257,8 @@ getent passwd %{suiapi} >/dev/null \
%{suiapi} %{suiapi}
if [ $1 -gt 1 ]; then # >1=Upgrade 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. # Transfer files owned by apache to Striker UI API user.
chown -R --from apache %{suiapi}: /mnt chown -R --from apache %{suiapi}: /mnt
chown -R --from apache %{suiapi}: %{_localstatedir}/www chown -R --from apache %{suiapi}: %{_localstatedir}/www

Loading…
Cancel
Save