[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[firstboot] Don't enable firstboot service on upgrade (#626676)



---
 firstboot.spec |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/firstboot.spec b/firstboot.spec
index be3e7fd..a348536 100644
--- a/firstboot.spec
+++ b/firstboot.spec
@@ -49,7 +49,7 @@ rm %{buildroot}/%{_datadir}/firstboot/modules/additional_cds.py*
 rm -rf %{buildroot}
 
 %post
-if ! [ -f /etc/sysconfig/firstboot ]; then
+if [ $1 -ne 2 -a ! -f /etc/sysconfig/firstboot ]; then
   systemctl enable firstboot-text.service >/dev/null 2>&1 || :
   systemctl enable firstboot-graphical.service >/dev/null 2>&1 || :
 fi
-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]