CentOS7: Register /sbin/nologin and /usr/sbin/nologin

Fix for https://github.com/serghey-rodin/vesta/issues/1437
This commit is contained in:
dpeca 2018-12-27 20:56:14 +01:00 committed by GitHub
commit 8010f5d802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -691,6 +691,10 @@ chmod a+x /backup
# Set directory color
echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile
# Register /sbin/nologin and /usr/sbin/nologin
echo "/sbin/nologin" >> /etc/shells
echo "/usr/sbin/nologin" >> /etc/shells
# Changing default systemd interval
if [ "$release" -eq '7' ]; then
# Hi Lennart