This commit is contained in:
USER
2025-05-16 12:23:30 +01:00
parent fef03d4e96
commit f685cb7d2f
2 changed files with 5 additions and 3 deletions

View File

@ -25,6 +25,7 @@ clone_repo () {
MYNAME=`uname -n`
DELETE_ONETIME=0
# set base directories
if [ $USER != "root" ]
then

View File

@ -55,7 +55,7 @@ else
fi
# set base directories
if [ $USER != "root" ]
then
ZZ=~/git
@ -81,8 +81,7 @@ else
fi
clone_repo
# start cloning repos
REPOSITE=${PRIVATE_SITE}
KEYS=${PRIVATE_KEYS}
@ -107,6 +106,7 @@ clone_repo
if [ ${DELETE_ONETIME} = 1 ]
then
rm -f /root/root.private
echo "Deleting /root/root.private"
fi
if [ $USER != "root" ]
@ -117,3 +117,4 @@ else
fi
exit 0