mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-16 18:11:33 +01:00
installer.sh
This commit is contained in:
17
install.sh
Executable file
17
install.sh
Executable file
@@ -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"
|
||||||
Reference in New Issue
Block a user