21 lines
553 B
Bash
21 lines
553 B
Bash
|
#!/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
|
||
|
[[ $USER ]] && mkdir -p /home/$USER/shell
|
||
|
uci_bash_shell_install $USER
|
||
|
|
||
|
if [[ $USER ]]; then
|
||
|
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
|
||
|
fi
|
||
|
|
||
|
echo "----------- uci shell install complete ------"
|
||
|
|