Commit 9597f608 authored by Valentino Lauciani's avatar Valentino Lauciani
Browse files

Update script

parent 706fe92f
......@@ -80,9 +80,9 @@ configure_git()
local repo=${3}
local key=${4}
echo "Configuring git key $key" >> $OUTPUTFILE
echo "Configuring git connectivity for $repo" >> $OUTPUTFILE
echo "Registering git domain: $host" >> $OUTPUTFILE
echo_date "Configuring git key $key" >> $OUTPUTFILE
echo_date "Configuring git connectivity for $repo" >> $OUTPUTFILE
echo_date "Registering git domain: $host" >> $OUTPUTFILE
if [ ! -z "$key" ]; then
setup_sshkey $key $host $user
......@@ -90,11 +90,11 @@ configure_git()
# remove html dir so we can clone into it
rm -rf ${GITBASEDIRCURREPO}
echo "Attemtping git clone of dncc repo.." >> $OUTPUTFILE
echo "git clone git@$host:$user/$repo.git ${GITBASEDIRCURREPO}" >> $OUTPUTFILE
echo_date "Attemtping git clone of dncc repo.." >> $OUTPUTFILE
echo_date "git clone git@$host:$user/$repo.git ${GITBASEDIRCURREPO}" >> $OUTPUTFILE
git clone git@$host:$user/$repo.git ${GITBASEDIRCURREPO}
else
echo "no SSH private key. Skipping setup" >> $OUTPUTFILE
echo_date "no SSH private key. Skipping setup" >> $OUTPUTFILE
fi
}
......@@ -122,7 +122,7 @@ configure_iptables()
echo_date "Done" >> ${OUTPUTFILE} 2>&1
if (( ${RETURNED_VAL} == 0 )) && [ -d ${GITBASEDIR}/cnt.rm.ingv.it/root/etc/firewall/ ]; then
echo_date "COnfiguring \"iptables\":" >> ${OUTPUTFILE} 2>&1
echo_date "Configuring \"iptables\":" >> ${OUTPUTFILE} 2>&1
mkdir /etc/firewall
cd /etc/firewall
ln -s ${GITBASEDIR}/cnt.rm.ingv.it/root/etc/firewall/firewall.openall.sh
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment