mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
* update debian/
This commit is contained in:
parent
1f6f4d9c49
commit
8aa158c1e0
4 changed files with 21 additions and 16 deletions
6
debian/postinst
vendored
6
debian/postinst
vendored
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
LOGFILE='/var/log/i2pd.log'
|
||||
I2PDHOME='/var/lib/i2pd'
|
||||
I2PDUSER='i2pd'
|
||||
|
||||
|
@ -16,8 +17,9 @@ case "$1" in
|
|||
adduser --system --quiet --group --home $I2PDHOME $I2PDUSER
|
||||
fi
|
||||
|
||||
touch /var/log/i2pd.log
|
||||
chown -f ${I2PDUSER}:adm /var/log/i2pd.log
|
||||
touch $LOGFILE
|
||||
chmod 640 $LOGFILE
|
||||
chown -f ${I2PDUSER}:adm $LOGFILE
|
||||
mkdir -p -m0750 $I2PDHOME
|
||||
chown -f -R -P ${I2PDUSER}:${I2PDUSER} ${I2PDHOME}
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue