From 59a938e5cf491e06f7a1285de30ecae78ddec8da Mon Sep 17 00:00:00 2001 From: root Date: Thu, 21 Apr 2016 08:46:06 +0300 Subject: [PATCH] chroot --- mps-bootstrap | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mps-bootstrap b/mps-bootstrap index 75f767639..a642bbc4b 100755 --- a/mps-bootstrap +++ b/mps-bootstrap @@ -4,7 +4,7 @@ versiyon="0.4" iletisim="milisarge@gmail.com" paketdepo="/tmp/paketler/" -sunucu="192.168.1.111:8000/" +sunucu="192.168.1.23:8000/" #sunucu="http://milis.gungre.ch/packages/" git_sunucu="https://github.com/milisarge/malfs-milis" ikaynak="" @@ -715,8 +715,10 @@ if [ "$ikaynak" = "ag" ]; then #if wget -P /tmp -q "$sunucu$cpaket" > /dev/null; then if [ $? -eq 0 ]; then wget -nc -P "$paketdepo" "$sunucu$cpaket" - ekontdeg=`cat "$paketdepo""paket.vt" | grep "^$2 " | cut -d' ' -f2` - mkontdeg=`md5sum $pkt | cut -d' ' -f1` + if [ -f "$paketde""popaket.vt" ];then + ekontdeg=`cat "$paketdepo""paket.vt" | grep "^$2 " | cut -d' ' -f2` + mkontdeg=`md5sum $pkt | cut -d' ' -f1` + fi if [ "$ekontdeg" != "$mkontdeg" ];then rm -f $pkt wget -nc -P "$paketdepo" "$sunucu$cpaket"