add install script

This commit is contained in:
Guillermo Roche 2020-06-02 00:29:45 +02:00
parent af365474a7
commit 3eb5197ba5

12
instaler_client.sh Normal file
View File

@ -0,0 +1,12 @@
echo Contraseña:
read -s pas
qmake -makefile ClienteTFG.pro && make -j$(nproc)
echo $pas | sudo -S mv ClienteTFG /usr/bin
echo $pas | sudo -S chmod a+x /usr/bin/ClienteTFG
echo $pas | sudo -S echo "security=yes" >> /etc/clientRemoteBuilds/config
echo "write a port"
read port
echo $pas | sudo -S echo "port=$port" >> /etc/clientRemoteBuilds/config
echo "write a host"
read host
echo $pas | sudo -S echo "host=$host" >> /etc/clientRemoteBuilds/config