source: debian/i2p.config @ 25f6c3d

Last change on this file since 25f6c3d 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
RevLine 
[29953ea]1#!/bin/sh
2
3set -e
[b6fab82]4# I2P package configuration script
5
6conffile="/etc/default/i2p"
7
8. /usr/share/debconf/confmodule
9
[f674b78]10# Load config file if it exists
11if [ -e $conffile ]; then
[29953ea]12    . $conffile
[03ff4dc0]13
[29953ea]14    # wrapper.config always takes priority
15    MEMORYLIMIT=$(awk -F= '/^wrapper\.java\.maxmemory/{print $2}' /etc/i2p/wrapper.config)
[03ff4dc0]16
[29953ea]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"
[f674b78]21fi
[b6fab82]22
[f674b78]23db_input medium i2p/daemon || true
24db_go
[29953ea]25
[f674b78]26db_get i2p/daemon || true
27if [ "$RET" = "true" ]; then
[29953ea]28    db_input medium i2p/user || true
29    db_go
[b6fab82]30fi
[03ff4dc0]31
32db_input medium i2p/memory || true
33db_go
[29953ea]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.