Browse Source

fix debian-bash as link

master 0.9.1
pvincent 4 years ago
parent
commit
508a2e0b97
  1. 29
      install.sh

29
install.sh

@ -17,17 +17,24 @@ function install_host {
if [[ ! $BASEDIR == '/opt/debian-bash' ]]; then if [[ ! $BASEDIR == '/opt/debian-bash' ]]; then
# download and filfull /opt/debian-bash, then run it from folder # download and filfull /opt/debian-bash, then run it from folder
rm -rf /opt/debian-bash
TEMP=`mktemp -d`
cd $TEMP
echo $TEMP
wget https://git.artcode.re/pvincent/debian-bash/archive/master.tar.gz
tar -xzf master.tar.gz
mv debian-bash /opt/
cd /opt/debian-bash
./install.sh $PARAM1
rm -rf $TEMP
exit 0
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
echo $TEMP
wget https://git.artcode.re/pvincent/debian-bash/archive/master.tar.gz
tar -xzf master.tar.gz
mv debian-bash /opt/
cd /opt/debian-bash
./install.sh $PARAM1
rm -rf $TEMP
exit 0
fi
else else

Loading…
Cancel
Save