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` MYNAME=`uname -n`
DELETE_ONETIME=0 DELETE_ONETIME=0
# set base directories # set base directories
if [ $USER != "root" ] if [ $USER != "root" ]
then then

View File

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