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

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

changeog updated

File size: 574 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        systemctl stop n4d || true
22        systemctl start n4d || true
23       
24       
25   ;;
26
27   abort-upgrade|abort-remove|abort-deconfigure)
28   ;;
29
30   *)
31       exit 1
32   ;;
33esac
34
35#DEBHELPER#
36
37exit 0
38
Note: See TracBrowser for help on using the repository browser.