summaryrefslogtreecommitdiffstats
path: root/bin/exit_hook.fix-permissions.sh
blob: 74074cd013ee2d5ae4031ca5f888002d18e3f389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

echo " + Fixing permissions..."

if getent group ssl-cert > /dev/null 2>&1
then
	echo -n "   + /var/lib/dehydrated/certs:"

	find /var/lib/dehydrated/certs -type d -exec chmod 0750 {} \;
	find /var/lib/dehydrated/certs -type f -exec chmod 0640 {} \;

	chown -R root:ssl-cert /var/lib/dehydrated/certs

	echo " done."
fi