mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
update debian packaging files
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
ac594dbd26
commit
a6be32392d
11 changed files with 18 additions and 74 deletions
3
debian/postinst
vendored
3
debian/postinst
vendored
|
@ -12,7 +12,6 @@ case "$1" in
|
|||
# Create user and group as a system user.
|
||||
if getent passwd $I2PDUSER > /dev/null 2>&1; then
|
||||
groupadd -f $I2PDUSER || true
|
||||
usermod -s "/bin/false" -e 1 $I2PDUSER > /dev/null || true
|
||||
else
|
||||
adduser --system --quiet --group --home $I2PDHOME $I2PDUSER
|
||||
fi
|
||||
|
@ -23,7 +22,7 @@ case "$1" in
|
|||
chmod 640 $LOGFILE
|
||||
chown -f ${I2PDUSER}:adm $LOGFILE
|
||||
mkdir -p -m0750 $I2PDHOME
|
||||
chown -f -R -P ${I2PDUSER}:${I2PDUSER} ${I2PDHOME}
|
||||
chown -f -P ${I2PDUSER}:${I2PDUSER} ${I2PDHOME}
|
||||
;;
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
echo "Aborting upgrade"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue