From c7fcb9c86fd4402b0c1e09c37af50017de2c01a7 Mon Sep 17 00:00:00 2001 From: mahmutov Date: Thu, 4 Aug 2016 07:44:56 +0000 Subject: [PATCH] mps.otokurliste --- bin/mps | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/bin/mps b/bin/mps index 8204e2f1e..00410ea77 100755 --- a/bin/mps +++ b/bin/mps @@ -4,7 +4,7 @@ if [ -f /etc/mps.conf ];then . /etc/mps.conf fi . /root/bin/fonks.sh -versiyon="0.6" +versiyon="0.8" iletisim="milisarge@gmail.com" paketdepo="/depo/paketler/" if [ -z ${sunucu+:} ]; then @@ -273,7 +273,18 @@ paket_kur_liste(){ for kpkt in `cat $1`;do for pkt in `ls $kpkt* | cut -d'#' -f1`;do pak=`ls "$pkt#"*` - mps -k2 "$pak" + mps -k "$pak" + done + done +} + +paket_kur_liste_zorla(){ + local kpkt pkt pak + for kpkt in `cat $1`;do + for pkt in `ls $kpkt* | cut -d'#' -f1`;do + pak=`ls "$pkt#"*` + paket_sil "$kpkt" "evet" + mps -k "$pak" done done } @@ -844,6 +855,8 @@ ayarlar() { paket_kur_oto_zorla "$2" ;; -okl|--pkokl) paket_kur_liste "$2" ;; + -oklz) + paket_kur_liste_zorla "$2" ;; -ko|--pkko) paket_kur_oto2 "$2" ;; -kuruld)