From b04b36af2ccc31b49415d81ac23458e0aaa0fa28 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 11 Mar 2011 23:42:49 +0100 Subject: [PATCH] Register VM services also on update --- rpm_spec/core-appvm.spec | 6 +++--- rpm_spec/core-netvm.spec | 6 ------ rpm_spec/core-proxyvm.spec | 5 ----- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/rpm_spec/core-appvm.spec b/rpm_spec/core-appvm.spec index a6eea0d8..91fd13c6 100644 --- a/rpm_spec/core-appvm.spec +++ b/rpm_spec/core-appvm.spec @@ -88,6 +88,9 @@ chown 500:500 $RPM_BUILD_ROOT/home_volatile/user %post +chkconfig --add qubes_core_appvm || echo "WARNING: Cannot add service qubes_core!" +chkconfig qubes_core_appvm on || echo "WARNING: Cannot enable service qubes_core!" + if [ "$1" != 1 ] ; then # do this whole %post thing only when updating for the first time... exit 0 @@ -95,9 +98,6 @@ fi usermod -L user -chkconfig --add qubes_core_appvm || echo "WARNING: Cannot add service qubes_core!" -chkconfig qubes_core_appvm on || echo "WARNING: Cannot enable service qubes_core!" - %preun if [ "$1" = 0 ] ; then # no more packages left diff --git a/rpm_spec/core-netvm.spec b/rpm_spec/core-netvm.spec index f813e373..346c548e 100644 --- a/rpm_spec/core-netvm.spec +++ b/rpm_spec/core-netvm.spec @@ -68,15 +68,9 @@ cp ../common/vif-route-qubes $RPM_BUILD_ROOT/etc/xen/scripts /usr/lib/qubes/qubes_fix_nm_conf.sh -if [ "$1" != 1 ] ; then -# do this whole %post thing only when updating for the first time... -exit 0 -fi - chkconfig --add qubes_core_netvm || echo "WARNING: Cannot add service qubes_core!" chkconfig qubes_core_netvm on || echo "WARNING: Cannot enable service qubes_core!" - %preun if [ "$1" = 0 ] ; then # no more packages left diff --git a/rpm_spec/core-proxyvm.spec b/rpm_spec/core-proxyvm.spec index 13c92535..52bc17f8 100644 --- a/rpm_spec/core-proxyvm.spec +++ b/rpm_spec/core-proxyvm.spec @@ -56,11 +56,6 @@ cp bin/qubes_netwatcher $RPM_BUILD_ROOT/usr/sbin/ %post -if [ "$1" != 1 ] ; then -# do this whole %post thing only when updating for the first time... -exit 0 -fi - chkconfig --add qubes_firewall || echo "WARNING: Cannot add service qubes_core!" chkconfig qubes_firewall on || echo "WARNING: Cannot enable service qubes_core!"