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
}