This commit is contained in:
Iwan Clement
2019-05-08 08:32:47 +02:00
parent 5d11a0fe51
commit c0896dffda

View File

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