]> git.pld-linux.org Git - packages/eventum.git/commitdiff
seems only reliable and useful way to switch user is sudo
authorElan Ruusamäe <glen@delfi.ee>
Mon, 16 Apr 2018 19:10:58 +0000 (22:10 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 16 Apr 2018 19:10:58 +0000 (22:10 +0300)
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2018-April/025530.html

eventum.spec

index 409fab4aaffa2f8523324182f6b8b426388c44cc..e9789551823a67d21be55fc7d7d1a7c5e9df46d1 100644 (file)
@@ -43,6 +43,7 @@ URL:          https://wiki.github.com/eventum/eventum/
 BuildRequires: gettext-tools
 BuildRequires: rpmbuild(macros) >= 1.654
 BuildRequires: sed >= 4.0
+Requires(post):        sudo
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
@@ -505,7 +506,7 @@ done
 
 # run database update if configured
 test -s %{_webappdir}/config.php && \
-runuser -u http -- %{_appdir}/bin/upgrade.php || :
+sudo -H -u http -- %{_appdir}/bin/upgrade.php || :
 
 # nuke Smarty templates cache after upgrade
 rm -f /var/cache/eventum/*.php
This page took 0.066589 seconds and 4 git commands to generate.