[arch-commits] Commit in deluge/trunk (PKGBUILD deluge.install)
Jan Steffens
heftig at archlinux.org
Fri Feb 27 12:50:55 UTC 2015
Date: Friday, February 27, 2015 @ 13:50:55
Author: heftig
Revision: 232071
don't remove user
Modified:
deluge/trunk/PKGBUILD
deluge/trunk/deluge.install
----------------+
PKGBUILD | 2 +-
deluge.install | 7 ++-----
2 files changed, 3 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-02-27 12:49:05 UTC (rev 232070)
+++ PKGBUILD 2015-02-27 12:50:55 UTC (rev 232071)
@@ -5,7 +5,7 @@
pkgname=deluge
pkgver=1.3.11
-pkgrel=1
+pkgrel=2
pkgdesc="A BitTorrent client with multiple user interfaces in a client/server model"
arch=('any')
url="http://deluge-torrent.org/"
Modified: deluge.install
===================================================================
--- deluge.install 2015-02-27 12:49:05 UTC (rev 232070)
+++ deluge.install 2015-02-27 12:50:55 UTC (rev 232071)
@@ -1,6 +1,6 @@
post_install() {
- getent group deluge &>/dev/null || groupadd -g 125 deluge
if ! getent passwd deluge &>/dev/null; then
+ groupadd -g 125 deluge
useradd -c 'Deluge user' -u 125 -g deluge -d /srv/deluge -s /bin/false deluge
passwd -l deluge &>/dev/null
fi
@@ -11,12 +11,9 @@
post_upgrade() {
[[ -x /usr/bin/xdg-icon-resource ]] && xdg-icon-resource forceupdate --theme hicolor
[[ -x /usr/bin/update-desktop-database ]] && update-desktop-database -q
- true
+ return 0
}
post_remove() {
- getent passwd deluge &>/dev/null && userdel deluge
- getent group deluge &>/dev/null && groupdel deluge
-
post_upgrade
}
More information about the arch-commits
mailing list