|
|
@ -17,6 +17,12 @@ function install_host { |
|
|
|
if [[ ! $BASEDIR == '/opt/debian-bash' ]]; then |
|
|
|
# download and filfull /opt/debian-bash, then run it from folder |
|
|
|
|
|
|
|
if [[ -L /opt/debian-bash ]];then |
|
|
|
cd /opt/debian-bash |
|
|
|
git pull |
|
|
|
./install.sh $PARAM1 |
|
|
|
exit 0 |
|
|
|
else |
|
|
|
rm -rf /opt/debian-bash |
|
|
|
TEMP=`mktemp -d` |
|
|
|
cd $TEMP |
|
|
@ -28,6 +34,7 @@ function install_host { |
|
|
|
./install.sh $PARAM1 |
|
|
|
rm -rf $TEMP |
|
|
|
exit 0 |
|
|
|
fi |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|