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/ cd /root/
if [ -d "${repo}" ]; then if [ -d "${repo}" ]; then
echo "${repo} existiert bereits!!!" echo "${repo} existiert bereits!!!"
cd ${repo} rm -Rv ${repo}
git pull
cd ..
else
git clone ${WEBADDRESS}
fi fi
git clone ${WEBADDRESS}
if [ -d "${repo1}" ]; then if [ -d "${repo1}" ]; then
echo "${repo1} existiert bereits!!!" echo "${repo1} existiert bereits!!!"
cd ${repo1} rm -Rv ${repo1}
git pull
cd ..
else
git clone ${WEBADDRESS1}
fi fi
git clone ${WEBADDRESS1}
cd / cd /
} }

View file

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

10
auto.sh
View file

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

View file

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