SLBR/lxcinit.sh

8 lines
326 B
Bash
Executable File

#!/bin/bash
#WARRNING: THIS SHOULD ONLY BE INVOKED FROM newuser.sh
echo " Launching container for user $(whoami)"
. /etc/profile.d/apps-bin-path.sh \
&& lxc launch ubuntu: "$(whoami)"
lxc file push /home/slbr/tmuxinit.sh "$(whoami)"/usr/bin/tmuxinit.sh
lxc file push /home/slbr/suicidebash.bashrc "$(whoami)"/etc/bash.bashrc