X-Git-Url: https://rtime.felk.cvut.cz/gitweb/novaboot.git/blobdiff_plain/785d1de1b475cf066f940d61f16b7c3cbd082dee..916ad955da772d39df5c565f5299a034b04b0e32:/server/adduser-novaboot diff --git a/server/adduser-novaboot b/server/adduser-novaboot index 928e763..dec3804 100755 --- a/server/adduser-novaboot +++ b/server/adduser-novaboot @@ -69,17 +69,6 @@ else echo "NOT creating /srv/tftp/$user and symlink to it from $home/tftproot." fi -if [ -d /run/systemd/system ]; then - echo "Installing systemd services and timers in /etc/systemd/system/user@$uid.service.d" - mkdir -p /etc/systemd/system/user@$uid.service.d - cat < /etc/systemd/system/user@$uid.service.d/novaboot-server.conf -[Unit] -Requires=novaboot-server-session@$user.service -After=novaboot-server-session@$user.service -EOF - systemctl daemon-reload -fi - echo "Creating configuration template in $home/.novaboot-shell" cat <<'CONFIG_EOF' > $home/.novaboot-shell #!/bin/sh @@ -105,6 +94,18 @@ cat <<'CONFIG_EOF' > $home/.novaboot-shell CONFIG_EOF chown $user: $home/.novaboot-shell +if [ -d /run/systemd/system ]; then + cat <