mps
This commit is contained in:
parent
8a3cb61f3b
commit
13067b3740
1 changed files with 11 additions and 10 deletions
21
bin/mps
21
bin/mps
|
@ -2086,6 +2086,7 @@ fi
|
||||||
git_guncelle() {
|
git_guncelle() {
|
||||||
kaynakdizin_kontrol
|
kaynakdizin_kontrol
|
||||||
gitayar_kontrol
|
gitayar_kontrol
|
||||||
|
local _yerel
|
||||||
#cd $DERLEME_KAYNAKDIZIN
|
#cd $DERLEME_KAYNAKDIZIN
|
||||||
#git deponun sunucudan güncellenmesi
|
#git deponun sunucudan güncellenmesi
|
||||||
ryaz 33 "$_git_guncelleniyor"
|
ryaz 33 "$_git_guncelleniyor"
|
||||||
|
@ -2112,23 +2113,23 @@ git_guncelle() {
|
||||||
#rsync -aviz -q --delete ${git_depo}/rootfs/lib/services/* /lib/services/
|
#rsync -aviz -q --delete ${git_depo}/rootfs/lib/services/* /lib/services/
|
||||||
cp --remove-destination -rf ${git_depo}/rootfs/lib/services/* /lib/services/
|
cp --remove-destination -rf ${git_depo}/rootfs/lib/services/* /lib/services/
|
||||||
# talimatname ve betiklerin güncellenmesi
|
# talimatname ve betiklerin güncellenmesi
|
||||||
cd `dirname $talimatname`
|
_yerel=$(dirname $talimatname)
|
||||||
rm -r $talimatname
|
cd ${_yerel}
|
||||||
mkdir -p $talimatname
|
rm -rf $talimatname ${_yerel}/bin ${_yerel}/ayarlar
|
||||||
rsync -aviz -q --delete ${git_depo}/talimatname/ $talimatname
|
cp -rf ${git_depo}/talimatname/ ${_yerel}/
|
||||||
rm -r `dirname $talimatname`/bin/*
|
cp -rf ${git_depo}/bin ${_yerel}/
|
||||||
rsync -aviz -q --delete ${git_depo}/bin/ `dirname $talimatname`/bin
|
cp -rf ${git_depo}/ayarlar ${_yerel}/
|
||||||
rm -r `dirname $talimatname`/ayarlar/*
|
|
||||||
rsync -aviz -q --delete ${git_depo}/ayarlar/ `dirname $talimatname`/ayarlar
|
|
||||||
#ikili dosyaların /usr/bin altına kısayol atılması
|
#ikili dosyaların /usr/bin altına kısayol atılması
|
||||||
for i in /root/bin/*; do
|
for i in ${_yerel}/bin/*; do
|
||||||
j=`basename $i`
|
j=`basename $i`
|
||||||
if [ ! -L /usr/bin/$j ];then
|
if [ ! -L /usr/bin/$j ];then
|
||||||
ln -sf /root/bin/$j /usr/bin/$j
|
ln -sf ${_yerel}/bin/$j /usr/bin/$j
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
#kırık linklerin temizlenmesi
|
#kırık linklerin temizlenmesi
|
||||||
find -L /usr/bin/* -name . -o -type d -prune -o -type l -exec rm {} +
|
find -L /usr/bin/* -name . -o -type d -prune -o -type l -exec rm {} +
|
||||||
|
find -L ${_yerel}/bin/* -name . -o -type d -prune -o -type l -exec rm {} +
|
||||||
find -L /root/bin/* -name . -o -type d -prune -o -type l -exec rm {} +
|
find -L /root/bin/* -name . -o -type d -prune -o -type l -exec rm {} +
|
||||||
ryaz 32 "$_yerel_esitlendi"
|
ryaz 32 "$_yerel_esitlendi"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue