This commit is contained in:
milisbir 2016-03-29 00:16:52 +00:00
parent aba2601682
commit a74ec576fb
2 changed files with 21 additions and 3 deletions

23
bin/mps
View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
. /etc/mpsd.conf . /etc/mpsd.conf
. /root/bin/fonks.sh . /root/bin/fonks.sh
versiyon="0.1" versiyon="0.2"
iletisim="milisarge@gmail.com" iletisim="milisarge@gmail.com"
paketdepo="/depo/paketler/" paketdepo="/depo/paketler/"
sunucu="192.168.3.193:8000/MPS/" sunucu="192.168.3.193:8000/MPS/"
@ -13,6 +13,7 @@ talimatname_dizin="/root/talimatname"
kokdizin="/" kokdizin="/"
VT="/var/lib/pkg/DB" VT="/var/lib/pkg/DB"
TARIHCE_DIZIN="/var/lib/pkg/tarihce" TARIHCE_DIZIN="/var/lib/pkg/tarihce"
LOGDIZIN="/var/log/mps"
tekrarkur="hayir" tekrarkur="hayir"
lokal="tr" lokal="tr"
docsil="evet" docsil="evet"
@ -58,6 +59,8 @@ icerik_ekle(){
ldconfig ldconfig
fi fi
ryaz 34 $paketad" paketi kuruldu." ryaz 34 $paketad" paketi kuruldu."
loglama "$paketad paketi kuruldu."
} }
icerik_ekle2(){ icerik_ekle2(){
@ -132,6 +135,7 @@ paket_sil(){
xargs rm -r -f < /tmp/$paket.sil && xargs rm -r -f < /tmp/$paket.sil &&
rm -r -f /var/lib/pkg/DB/"$paket" && rm -r -f /var/lib/pkg/DB/"$paket" &&
ryaz 34 $paket" paketi silindi." ryaz 34 $paket" paketi silindi."
loglama "$paket paketi silindi."
fi fi
rm -f /tmp/$paket.sil rm -f /tmp/$paket.sil
else else
@ -354,6 +358,18 @@ kaynakdizin_kontrol(){
fi fi
} }
logdizin_kontrol(){
if [ ! -d $LOGDIZIN ];then
mkdir $LOGDIZIN
fi
if [ ! -d $LOGDIZIN/derleme ];then
mkdir $LOGDIZIN/derleme
fi
if [ ! -f $LOGDIZIN/mps.log ];then
touch $LOGDIZIN/mps.log
fi
}
tarihce_dkontrol(){ tarihce_dkontrol(){
if [ ! -d $TARIHCE_DIZIN ];then if [ ! -d $TARIHCE_DIZIN ];then
mkdir $TARIHCE_DIZIN mkdir $TARIHCE_DIZIN
@ -437,8 +453,9 @@ tarihce_sil(){
fi fi
} }
log_tutma(){ loglama(){
echo "$(date +'%F %T') - $1 - paket" >> test.log logdizin_kontrol
echo "$(date +'%F %T') $1" >> "$LOGDIZIN/mps.log"
} }
git_guncelle() { git_guncelle() {

1
bin/tamir_xfce4-panel_hatasi Executable file
View File

@ -0,0 +1 @@
rm -r /root/.cache/sessions/*