summaryrefslogtreecommitdiff
path: root/pcr/monkeysphere/monkeysphere.install
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-22 19:09:47 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-22 19:09:47 +0100
commit4edf6f3743dadcc14a09102d8a3d17f9e06c5197 (patch)
treee2eaa1ca58b75929001fba675ddf3c6e8b800dd5 /pcr/monkeysphere/monkeysphere.install
parent46a36ad7cb1547fc24614a9fa935ffb841f81e44 (diff)
downloadabslibre-4edf6f3743dadcc14a09102d8a3d17f9e06c5197.tar.gz
abslibre-4edf6f3743dadcc14a09102d8a3d17f9e06c5197.tar.bz2
abslibre-4edf6f3743dadcc14a09102d8a3d17f9e06c5197.zip
pcr/monkeysphere: updated to 0.41
Diffstat (limited to 'pcr/monkeysphere/monkeysphere.install')
-rw-r--r--pcr/monkeysphere/monkeysphere.install28
1 files changed, 13 insertions, 15 deletions
diff --git a/pcr/monkeysphere/monkeysphere.install b/pcr/monkeysphere/monkeysphere.install
index df25cbda5..5ab081342 100644
--- a/pcr/monkeysphere/monkeysphere.install
+++ b/pcr/monkeysphere/monkeysphere.install
@@ -5,22 +5,20 @@
# arg 1: the new package version
post_install() {
echo ">>> Creating monkeysphere user and group and setting permissions..."
- getent group monkeysphere >/dev/null || groupadd monkeysphere
- getent passwd monkeysphere >/dev/null ||useradd -c 'Monkeysphere WoT server identification tool' -g monkeysphere -d '/var/lib/monkeysphere' -s /bin/bash monkeysphere
+ getent group monkeysphere >/dev/null || groupadd -r monkeysphere
+ getent passwd monkeysphere >/dev/null ||useradd -r -c 'Monkeysphere WoT server identification tool' -g monkeysphere -d '/var/lib/monkeysphere' -s /bin/bash monkeysphere
+ echo ">>> Trying all available transitions..."
+ for trans in 0.23 0.28 ; do
+ /usr/share/monkeysphere/transitions/$trans || { \
+ RET=$?
+ echo "Failed running transition script /usr/share/monkeysphere/transitions/$trans" >&2
+ exit $RET
+ }
+ done
-# Should be root:root for sshd to work
- chown root:root /var/lib/monkeysphere
}
-# arg 1: the new package version
-# arg 2: the old package version
-post_upgrade() {
-# Should be root:root for sshd to work
- chown root:root /var/lib/monkeysphere
-}
-
-# arg 1: the old package version
pre_remove() {
- userdel monkeysphere &>/dev/null
- (getent group monkeysphere >/dev/null && groupdel monkeysphere &>/dev/null) || /bin/true
-}
+ echo ">>> /var/lib/monkeysphere files and folder will be left in place,
+ remove any reference to them from openssh-server config file to avoid being locked outside"
+ }