malfs mekanizma guncelleme

This commit is contained in:
root 2016-03-17 18:58:21 +02:00
parent b6b128f293
commit 7d065f4870
2 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,7 @@
versiyon="0.1"
iletisim="milisarge@gmail.com"
paketdepo="/depo/paketler/"
sunucu="192.168.3.192:8000/MPS/"
sunucu="192.168.1.23:8000/mps/"
git_sunucu="https://github.com/milisarge/malfs-milis"
ikaynak=""
betikad=${0##*/}
@ -669,8 +669,9 @@ ayarlar "$@"
if [ "$ikaynak" = "ag" ]; then
echo "agdan cekiliyor:" "$2"
#pkt=`cat "$paketdepo""paket.vt" | grep -w "$2" | cut -d' ' -f2`
pkt=`cat "$paketdepo""paket.vt" | grep "$2"# | cut -d' ' -f2`
pkt=`cat "$paketdepo""paket.vt" | grep "^$2 " | cut -d' ' -f3`
echo $pkt
if [ ! -z "$pkt" -a "$pkt" != "" ]; then
cpaket="${pkt/'#'/'%23'}"
#paket sunucuda varsa

View File

@ -7,7 +7,7 @@ pvt_olustur(){
do
paketad="`echo $paket|cut -d "#" -f1`"
shaek=`sha1sum $paket`
echo $shaek $paketad >> paket.vt
echo $paketad $shaek >> paket.vt
done
}