From 22af54db0b1cef32a71d8dc210612051fd57701c Mon Sep 17 00:00:00 2001 From: simono41 Date: Sat, 23 Dec 2017 00:37:51 +0100 Subject: [PATCH] beautysh-install --- beautysh-install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 beautysh-install.sh diff --git a/beautysh-install.sh b/beautysh-install.sh new file mode 100755 index 0000000..d789f62 --- /dev/null +++ b/beautysh-install.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -ex + +if [ -d /opt/beautysh ];then + rm -Rv /opt/beautysh + echo "Bereits vorhanden!!!" +fi +git clone https://github.com/bemeurer/beautysh /opt/beautysh +cd /opt/beautysh +python ./setup.py install +if [ -f /usr/bin/beautysh ];then + rm /usr/bin/beautysh +fi +ln -s /opt/beautysh/beautysh/beautysh.py /usr/bin/beautysh +chmod +x /usr/bin/beautysh +cd / +