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

View File

@@ -38,9 +38,13 @@ mkdir /home/$USERNAME/.ssh \
&& chown -R $USERNAME:$USERNAME /home/$USERNAME \ && chown -R $USERNAME:$USERNAME /home/$USERNAME \
|| exit 3 || exit 3
if [ -d /var/lib/AccountsService/users ]; then if [ -e $DEBFLAG ]; then
echo "[User]">/var/lib/AccountsService/users/$USERNAME if [ "$(cat $DEBFLAG)" == "buster/sid" ]; then
echo "SystemAccount=true">>/var/lib/AccountsService/users/$USERNAME 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 fi
if [ -e $DEBFLAG ]; then if [ -e $DEBFLAG ]; then