source: debian/i2p.config

Last change on this file was 29953ea, checked in by kytv <kytv@…>, 5 years ago

Debian: confine daemon with apparmor (ticket #1061)

  • Property mode set to 100755
File size: 759 bytes
Line 
1#!/bin/sh
2
3set -e
4# I2P package configuration script
5
6conffile="/etc/default/i2p"
7
8. /usr/share/debconf/confmodule
9
10# Load config file if it exists
11if [ -e $conffile ]; then
12    . $conffile
13
14    # wrapper.config always takes priority
15    MEMORYLIMIT=$(awk -F= '/^wrapper\.java\.maxmemory/{print $2}' /etc/i2p/wrapper.config)
16
17    db_set i2p/daemon "$RUN_DAEMON"
18    db_set i2p/user "$I2PUSER"
19    db_set i2p/memory "$MEMORYLIMIT"
20    db_set i2p/aa "$CONFINE_WITH_APPARMOR"
21fi
22
23db_input medium i2p/daemon || true
24db_go
25
26db_get i2p/daemon || true
27if [ "$RET" = "true" ]; then
28    db_input medium i2p/user || true
29    db_go
30fi
31
32db_input medium i2p/memory || true
33db_go
34
35db_input medium i2p/aa || true
36db_go
37
38# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
Note: See TracBrowser for help on using the repository browser.