mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
Linux pkgs: fix postinstall scripts
This commit is contained in:
@@ -22,7 +22,7 @@ if [ "$1" = "configure" ]; then
|
|||||||
# ensure files and folders have the appropriate permissions
|
# ensure files and folders have the appropriate permissions
|
||||||
chown -R sftpgo:sftpgo /etc/sftpgo /var/lib/sftpgo
|
chown -R sftpgo:sftpgo /etc/sftpgo /var/lib/sftpgo
|
||||||
chmod 750 /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"
|
echo "Please be sure to have the python3-requests package installed if you want to use the REST API CLI"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ if [ $1 -eq 1 ]; then
|
|||||||
# ensure files and folders have the appropriate permissions
|
# ensure files and folders have the appropriate permissions
|
||||||
/usr/bin/chown -R sftpgo:sftpgo /etc/sftpgo /var/lib/sftpgo
|
/usr/bin/chown -R sftpgo:sftpgo /etc/sftpgo /var/lib/sftpgo
|
||||||
/usr/bin/chmod 750 /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"
|
echo "Please be sure to have the python requests library installed if you want to use the REST API CLI"
|
||||||
fi
|
fi
|
||||||
# reload to pick up any changes to systemd files
|
# reload to pick up any changes to systemd files
|
||||||
|
|||||||
Reference in New Issue
Block a user