Make it simple

This commit is contained in:
Iwan Clement
2019-05-08 11:47:16 +02:00
parent c0896dffda
commit 9cacd5a039

View File

@@ -39,13 +39,11 @@ mkdir /home/$USERNAME/.ssh \
|| exit 3 || exit 3
if [ -e $DEBFLAG ]; then if [ -e $DEBFLAG ]; then
if [ "$(cat $DEBFLAG)" == "buster/sid" ]; then
if [ -d /var/lib/AccountsService/users ]; then if [ -d /var/lib/AccountsService/users ]; then
echo "[User]">/var/lib/AccountsService/users/$USERNAME echo "[User]">/var/lib/AccountsService/users/$USERNAME
echo "SystemAccount=true">>/var/lib/AccountsService/users/$USERNAME echo "SystemAccount=true">>/var/lib/AccountsService/users/$USERNAME
fi fi
fi fi
fi
if [ -e $DEBFLAG ]; then if [ -e $DEBFLAG ]; then
systemctl enable ssh && systemctl restart ssh && exit 0 systemctl enable ssh && systemctl restart ssh && exit 0