#!/bin/bash echo -e "\n------------ ADD UCI-SHELL ---------------" mkdir -p /shell _url=https://git.kebler.net/bash/shell-base.git git clone $_url /shell source /shell/install/install.sh if [[ $USER_PW ]]; then echo adding shell for login user $USER mkdir -p /home/$USER/shell uci_bash_shell_install $USER chown -R $USER:$USER /shell chmod -R g+rw /shell # setfacl -d --set u::rwx,g::rwx,o::- /shell chown -R :host /home/$USER/shell chmod -R g+rw /home/$USER/shell # setfacl -d --set u::rwx,g::rwx,o::- /home/$USER/shell else uci_bash_shell_install fi echo "----------- uci shell install complete ------"