[X2Go-Commits] [x2goserver] 01/01: x2goserver.spec: create applications file in %install section, not %pre.

git-admin at x2go.org git-admin at x2go.org
Mon Feb 12 01:55:51 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch release/4.0.1.x
in repository x2goserver.

commit ff9707097ddf43e8dd656139eec8cec0aefb1bf4
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Feb 12 01:55:23 2018 +0100

    x2goserver.spec: create applications file in %install section, not %pre.
---
 debian/changelog | 1 +
 x2goserver.spec  | 7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d732421..058a282 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -104,6 +104,7 @@ x2goserver (4.0.1.23-0x2go1) UNRELEASED; urgency=medium
       Own the file as part of a %ghost procedure and make sure that the
       removal is only executed on real package erases (i.e., not also during
       package upgrades).
+    - Create applications file in %install section, not %pre.
   * debian/x2goserver.install:
     - Install new /etc/tmpfiles.d/x2goserver.conf conffile.
 
diff --git a/x2goserver.spec b/x2goserver.spec
index e8df4b8..5141aec 100644
--- a/x2goserver.spec
+++ b/x2goserver.spec
@@ -482,6 +482,10 @@ rm -f "%{buildroot}/etc/sudoers.d/x2goserver"
 rm -f "%{buildroot}/etc/tmpfiles.d/x2goserver.conf"
 %endif
 
+# Dummy file - will be created/removed in post* scriptlets.
+# We just need this here for the %ghost directory to work.
+touch "%{buildroot}/%{_sysconfdir}/x2go/applications"
+
 %pre
 if ! getent group x2gouser 1>/dev/null; then
     groupadd -r x2gouser
@@ -495,9 +499,6 @@ fi
 %service_add_pre x2goserver.service
 %endif
 
-# Dummy file - will be created/removed in post* scriptlets.
-# We just need this here for the %ghost directory to work.
-touch "%{buildroot}/%{_sysconfdir}/x2go/applications"
 
 %post
 # Initialize the session database

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list