Linux pkgs: fix postinstall scripts

This commit is contained in:
Nicola Murino
2020-10-06 18:18:43 +02:00
parent c289ae07d2
commit 412d6096c0
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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