gh-94: Fix SELinux labels for custom user

Closes #94
pull/100/merge
Vlastimil Holer 7 years ago
parent 88fcbd8566
commit f67fedc4ac
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -60,3 +60,8 @@ fi
chown "${USERNAME}": ${AUTH_DIR} ${AUTH_FILE}
chmod 600 $AUTH_FILE
# restore SELinux contexts
if which restorecon &>/dev/null; then
restorecon -R -v "${AUTH_DIR}"
fi

@ -1 +0,0 @@
[ -x /sbin/restorecon ] && restorecon -R -v /root/.ssh
Loading…
Cancel
Save