1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-17 13:50:33 +00:00

Force pihole user to use sh-shell (instead of nologin)

This commit is contained in:
DL6ER 2017-02-21 14:46:53 +01:00
parent e8fde702a0
commit 4f85ace525
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

View File

@ -28,7 +28,7 @@ start() {
touch /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port
chown pihole:pihole /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port
chmod 0644 /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port
su -c "/usr/bin/pihole-FTL" "$FTLUSER"
su -s /bin/sh -c "/usr/bin/pihole-FTL" "$FTLUSER"
echo
fi
}