From: Arne Fitzenreiter Date: Sat, 23 Sep 2017 08:34:54 +0000 (+0200) Subject: core114: force update addons after core update X-Git-Tag: v2.19-core114~1^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=595c6470dd2a3b6ad91169a405349cda3f00bd31;p=people%2Fstevee%2Fipfire-2.x.git core114: force update addons after core update apache needs new vhost configs so all addons must updated to work with new apache. Signed-off-by: Arne Fitzenreiter --- diff --git a/config/rootfiles/core/114/update.sh b/config/rootfiles/core/114/update.sh index 6d7a10b5ed..ac59cc9c67 100644 --- a/config/rootfiles/core/114/update.sh +++ b/config/rootfiles/core/114/update.sh @@ -69,6 +69,27 @@ if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then ipsec start fi +# +# After pakfire has ended run it again and update all addons +# this is needed for apache update. +# +echo '#!/bin/bash' > /tmp/pak_update +echo 'while [ "$(ps -A | grep " update.sh")" != "" ]; do' >> /tmp/pak_update +echo ' sleep 1' >> /tmp/pak_update +echo 'done' >> /tmp/pak_update +echo 'while [ "$(ps -A | grep " pakfire")" != "" ]; do' >> /tmp/pak_update +echo ' sleep 1' >> /tmp/pak_update +echo 'done' >> /tmp/pak_update +echo '/opt/pakfire/pakfire update -y --force' >> /tmp/pak_update +echo '/opt/pakfire/pakfire upgrade -y' >> /tmp/pak_update +echo '/opt/pakfire/pakfire upgrade -y' >> /tmp/pak_update +echo '/opt/pakfire/pakfire upgrade -y' >> /tmp/pak_update +echo 'touch /var/run/need_reboot ' >> /tmp/pak_update +# +killall -KILL pak_update +chmod +x /tmp/pak_update +/tmp/pak_update & + # This update need a reboot... touch /var/run/need_reboot