i2pd: move chmod command

Similar change to upstream.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-02-04 18:50:35 -08:00
parent 87a7ec7257
commit ddfa4cddca
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
1 changed files with 3 additions and 3 deletions

View File

@ -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