work/root/etc/service/runtime-setup-user/run
sneak 7bc4fbffc5
All checks were successful
continuous-integration/drone/push Build is passing
incorporate pyenv, nvm, profile scripts, autolink ~/dev
2020-04-11 14:30:50 -07:00

22 lines
297 B
Bash

#!/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