/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to debian/mandos-client.postinst

  • Committer: Teddy Hogeborn
  • Date: 2016-03-19 03:51:23 UTC
  • Revision ID: teddy@recompile.se-20160319035123-53w4dbzdyjef29m1
Server: New tmpfiles.d file for persistent state directory

Provide a tmpfiles.d(5) file for systemd to create persistent state
directory on so-called "volatile" systems.

* Makefile (TMPFILES): New.
  (install-server): Also install "tmpfiles.d-mandos.conf" file as
                    "/usr/lib/tmpfiles.d/mandos.conf".
* tmpfiles.d-mandos.conf: New.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        return 0
58
58
    fi
59
59
    mandos-keygen
60
 
    gpg-connect-agent KILLAGENT /bye || :
61
60
}
62
61
 
63
62
create_dh_params(){
91
90
        create_key "$@"
92
91
        create_dh_params "$@" || :
93
92
        update_initramfs "$@"
94
 
        if dpkg --compare-versions "$2" lt-nl "1.7.10-1"; then
 
93
        if dpkg --compare-versions "$2" lt-nl "1.7.7-1"; then
95
94
            PLUGINHELPERDIR=/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null)/mandos/plugin-helpers
96
95
            if ! dpkg-statoverride --list "$PLUGINHELPERDIR" \
97
96
                 >/dev/null 2>&1; then
98
97
                chmod u=rwx,go= -- "$PLUGINHELPERDIR"
99
98
            fi
100
 
            if ! dpkg-statoverride --list /etc/mandos/plugin-helpers \
101
 
                 >/dev/null 2>&1; then
102
 
                chmod u=rwx,go= -- /etc/mandos/plugin-helpers
103
 
            fi
104
99
        fi
105
100
        ;;
106
101
    abort-upgrade|abort-deconfigure|abort-remove)