Linux pkgs: move data directory to /srv/sftpgo

This commit is contained in:
Nicola Murino
2020-10-14 22:25:58 +02:00
parent 00510a6af8
commit 555394b95e
7 changed files with 34 additions and 5 deletions

View File

@@ -28,6 +28,15 @@ if [ "$1" = "configure" ]; then
chmod 640 /etc/sftpgo/sftpgo.json
echo "Please be sure to have the python3-requests package installed if you want to use the REST API CLI"
fi
# check permissions for /srv/sftpgo and adjust them if needed
if [ -d /srv/sftpgo ]; then
if [ $(stat -c '%U' /srv/sftpgo) != sftpgo ]; then
echo "Set permissions for /srv/sftpgo"
chown -R sftpgo:sftpgo /srv/sftpgo
chmod 750 /srv/sftpgo
fi
fi
fi
#DEBHELPER#
#DEBHELPER#