mps
This commit is contained in:
		
							parent
							
								
									61100a94f4
								
							
						
					
					
						commit
						9a2b64ab85
					
				
					 1 changed files with 20 additions and 2 deletions
				
			
		
							
								
								
									
										22
									
								
								bin/mps
									
										
									
									
									
								
							
							
						
						
									
										22
									
								
								bin/mps
									
										
									
									
									
								
							| 
						 | 
					@ -248,8 +248,8 @@ paket_sil(){
 | 
				
			||||||
				hataloglama "kritik mesaj:kurulanlar dosyası yok." 
 | 
									hataloglama "kritik mesaj:kurulanlar dosyası yok." 
 | 
				
			||||||
			fi
 | 
								fi
 | 
				
			||||||
		elif [ "$kkont" = "degil" ];then
 | 
							elif [ "$kkont" = "degil" ];then
 | 
				
			||||||
			$_yaz "$_zaten $_paket_kurulu_degil"
 | 
								$_yaz "$_zaten $paket $_paket_kurulu_degil"
 | 
				
			||||||
			hataloglama "$_zaten $_paket_kurulu_degil"
 | 
								hataloglama "$_zaten $paket $_paket_kurulu_degil"
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			$_yaz "$_paket_tanimsiz"
 | 
								$_yaz "$_paket_tanimsiz"
 | 
				
			||||||
			hataloglama "$_paket_tanimsiz"
 | 
								hataloglama "$_paket_tanimsiz"
 | 
				
			||||||
| 
						 | 
					@ -481,6 +481,21 @@ paket_bilgi_html(){
 | 
				
			||||||
	echo "$icerik" > $_dosya.html
 | 
						echo "$icerik" > $_dosya.html
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# paketlerin toplu tablo gösterimi
 | 
				
			||||||
 | 
					paketler_depo_html(){
 | 
				
			||||||
 | 
						icerik="<table border=1>"
 | 
				
			||||||
 | 
						for _paket in $(ls $VT);do
 | 
				
			||||||
 | 
							# ikon arşive baktırılacak varsa programın kendi ikonu yoksa öntanımlı ikon kullanılacak
 | 
				
			||||||
 | 
							_simge_dosya="/static/package.png"
 | 
				
			||||||
 | 
							#echo "dosya: /srv/http/komser/static/simgeler/${_paket}.png"
 | 
				
			||||||
 | 
							[ -f /srv/http/komser/static/simgeler/${_paket}.png ] && _simge_dosya="/static/simgeler/$_paket.png"
 | 
				
			||||||
 | 
							[ $(ls /srv/http/komser/static/simgeler/${_paket}_* | head -n1) ] && _simge_dosya="/static/simgeler/$(ls /srv/http/komser/static/simgeler/${_paket}_* | head -n1 | xargs -I {}  basename {})"
 | 
				
			||||||
 | 
							icerik+="<tr><td align=center><img src='${_simge_dosya}' alt='' weight=40 height=40></img><td><td>$_paket</td></tr>"
 | 
				
			||||||
 | 
						done
 | 
				
			||||||
 | 
						icerik+="</table>"
 | 
				
			||||||
 | 
						echo "$icerik" > /tmp/test.html
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
yeniden_paketle(){
 | 
					yeniden_paketle(){
 | 
				
			||||||
		cd $1
 | 
							cd $1
 | 
				
			||||||
		bsdtar -r -f  ../"$1".mps .META
 | 
							bsdtar -r -f  ../"$1".mps .META
 | 
				
			||||||
| 
						 | 
					@ -2759,6 +2774,9 @@ ayarlar() {
 | 
				
			||||||
					exit 1
 | 
										exit 1
 | 
				
			||||||
				fi
 | 
									fi
 | 
				
			||||||
				exit 0 ;;
 | 
									exit 0 ;;
 | 
				
			||||||
 | 
								phtml)
 | 
				
			||||||
 | 
									paketler_depo_html
 | 
				
			||||||
 | 
									exit 0 ;;
 | 
				
			||||||
			### mps bilgi paketismi = ilgili paketin talimat ve kurulum bilgilerini verir.
 | 
								### mps bilgi paketismi = ilgili paketin talimat ve kurulum bilgilerini verir.
 | 
				
			||||||
			bilgi)
 | 
								bilgi)
 | 
				
			||||||
				paket_bilgi "$2" 
 | 
									paket_bilgi "$2" 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue