i2pd: move chmod command
Similar change to upstream. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
87a7ec7257
commit
ddfa4cddca
1 changed files with 3 additions and 3 deletions
|
@ -15,16 +15,16 @@ DATADIR=/var/lib/i2pd
|
|||
|
||||
start_service() {
|
||||
## RAM
|
||||
if [ ! -d $DATADIR ]; then
|
||||
[ -d $DATADIR ] || {
|
||||
mkdir -p $DATADIR
|
||||
chown $USER:$GROUP $DATADIR
|
||||
ln -s /usr/share/i2pd/certificates $DATADIR/certificates
|
||||
ln -s /etc/i2pd/tunnels.conf $DATADIR/tunnels.conf
|
||||
# for peoples who not possible to use http reseeding
|
||||
ln -s /etc/i2pd/addressbook $DATADIR/addressbook
|
||||
fi
|
||||
}
|
||||
|
||||
## We need permissions
|
||||
chown $USER:$GROUP $DATADIR
|
||||
touch $PIDFILE
|
||||
chown $USER:adm $PIDFILE
|
||||
|
||||
|
|
Loading…
Reference in a new issue