
Rangelweb
(usa Linux Mint)
Enviado em 17/10/2017 - 20:55h
Olá,
Tenho um script para instalação do: apache2, php, mysql, phpmyadmin, e gostaria de usar yad como interface.
Criando uma lista e escolher o que for instalar e executar.
---------------------------------------------------------------------------------------------
#!/bin/bash
files=$(yad --width 100 --height 100 --title "Instalador Lamp-server" \
--text="Uma descrição!!!" \
--button="Apache2:2" \
--button="PHP:3" \
--button="Mysql:4" \
--button="Cancelar:1" \
--on-top \
--center \
)
ret=$?
[[ $ret -eq 1 ]] && exit 0
if [[ $ret -eq 2 ]]; then
sudo apt-get install apache2
fi
----------------------------------------------------------------------------------------