work/root/etc/service/runtime-setup-user/run

22 lines
297 B
Plaintext
Raw Normal View History

2020-04-11 18:55:50 +00:00
#!/bin/bash
UN="$(cat /etc/workuser)"
HD="/home/$UN"
if [[ -e "$HD/.setupdone" ]]; then
sleep 86400;
exit
fi
sudo \
--set-home \
--non-interactive \
-u $UN \
bash ./usersetup.sh && \
sudo \
--set-home \
--non-interactive \
-u $UN \
touch $HD/.setupdone