source: n4d-server-plugins/trunk/fuentes/debian/n4d-server-plugins.postinst @ 180

Last change on this file since 180 was 180, checked in by hectorgh, 5 years ago

wip

File size: 515 bytes
Line 
1#!/bin/sh
2
3set -e
4FILESECRET="/etc/n4d/key"
5CERTPATH="/etc/n4d/cert/"
6CERTNAME="n4d"
7case "$1" in
8   configure)
9   
10        if dpkg --compare-versions "$2" lt 0.83; then
11                echo "Generating group share..."
12                n4d-modules enable-plugin /etc/n4d/conf.d/golem || true
13                n4d-client -r -m restore_groups_folders -c Golem || true
14               
15        fi
16   
17   
18   
19        invoke-rc.d n4d stop || true
20        invoke-rc.d n4d start || true
21       
22       
23   ;;
24
25   abort-upgrade|abort-remove|abort-deconfigure)
26   ;;
27
28   *)
29       exit 1
30   ;;
31esac
32
33#DEBHELPER#
34
35exit 0
36
Note: See TracBrowser for help on using the repository browser.