From ddd1cb74c9bb47edb6aeb0124a327dba735a1b11 Mon Sep 17 00:00:00 2001 From: kprkpr Date: Tue, 31 May 2016 00:06:55 +0200 Subject: [PATCH] installer.sh --- install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..90ab0d9 --- /dev/null +++ b/install.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +echo "Este instalador copiará los scripts a /usr/bin/ y les dejara permisos de ejecución" +echo "This installer will copy the scripts to /usr/bin and make executable" +#Force sudo +uid=$(/usr/bin/id -u) +if [[ $uid != "0" ]];then +echo "installer has to run as root / with sudo" +exit +fi + +cp jka-toolkit/* /usr/bin/ +chmod +x /usr/bin/apw +chmod +x /usr/bin/jkazip + +echo "Finalizado" +echo "Finished"