mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-21 23:20:24 +00:00
Linux pkgs: fix postinstall scripts
This commit is contained in:
parent
c289ae07d2
commit
412d6096c0
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ if [ "$1" = "configure" ]; then
|
|||
# ensure files and folders have the appropriate permissions
|
||||
chown -R sftpgo:sftpgo /etc/sftpgo /var/lib/sftpgo
|
||||
chmod 750 /etc/sftpgo /var/lib/sftpgo
|
||||
chmod 640 /etc/sftpgo/sftpgo.json /etc/sftpgo/sftpgo.env
|
||||
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
|
||||
fi
|
||||
|
|
|
@ -18,7 +18,7 @@ if [ $1 -eq 1 ]; then
|
|||
# ensure files and folders have the appropriate permissions
|
||||
/usr/bin/chown -R sftpgo:sftpgo /etc/sftpgo /var/lib/sftpgo
|
||||
/usr/bin/chmod 750 /etc/sftpgo /var/lib/sftpgo
|
||||
/usr/bin/chmod 640 /etc/sftpgo/sftpgo.json /etc/sftpgo/sftpgo.env
|
||||
/usr/bin/chmod 640 /etc/sftpgo/sftpgo.json
|
||||
echo "Please be sure to have the python requests library installed if you want to use the REST API CLI"
|
||||
fi
|
||||
# reload to pick up any changes to systemd files
|
||||
|
|
Loading…
Reference in a new issue