This commit is contained in:
simono41 2018-02-26 06:07:15 +01:00
parent 19426584f4
commit 1ad55fefdd
4 changed files with 11 additions and 27 deletions

View file

@ -30,20 +30,14 @@ function gitclone() {
cd /root/
if [ -d "${repo}" ]; then
echo "${repo} existiert bereits!!!"
cd ${repo}
git pull
cd ..
else
git clone ${WEBADDRESS}
rm -Rv ${repo}
fi
git clone ${WEBADDRESS}
if [ -d "${repo1}" ]; then
echo "${repo1} existiert bereits!!!"
cd ${repo1}
git pull
cd ..
else
git clone ${WEBADDRESS1}
rm -Rv ${repo1}
fi
git clone ${WEBADDRESS1}
cd /
}

View file

@ -38,12 +38,9 @@ function gitclone() {
cd /root/
if [ -d "${repo}" ]; then
echo "${repo} existiert bereits!!!"
cd ${repo}
git pull
cd ..
else
git clone ${WEBADDRESS}
rm -Rv ${repo}
fi
git clone ${WEBADDRESS}
cd /
}

View file

@ -11,14 +11,10 @@ version="$1"
cd /root/
if [ -d "/root/${repo}/" ]; then
echo "Existiert bereits!!!"
else
rm -Rv ${repo}
fi
git clone http://${server}/${user}/${repo}.git
fi
cd /root/${repo}/
git pull
if [ -d "out/" ]; then
rm -Rv out/
fi
./make_mksquashfs-auto.sh ${version}
scp out/* ${server}:/var/www/html/

View file

@ -21,12 +21,9 @@ function gitclone() {
cd /root/
if [ -d "${repo}" ]; then
echo "${repo} existiert bereits!!!"
cd ${repo}
git pull
cd ..
else
git clone ${WEBADDRESS}
rm -Rv ${repo}
fi
git clone ${WEBADDRESS}
cd /
}