From 6307673606058e30e63639730c0a02103392e9b1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 25 Mar 2018 20:27:16 -0500 Subject: [PATCH] Add new file --- linupx-install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 linupx-install.sh diff --git a/linupx-install.sh b/linupx-install.sh new file mode 100644 index 0000000..75bdd3b --- /dev/null +++ b/linupx-install.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Wrapper script for install, for easier execution via URL. + +if [ "$EUID" -ne 0 ]; then + sudo set -eu + sudo git clone https://git.schroedercity.com/voltron/LinUPx.git /opt/LinUPx + sudo ln -s /opt/LinUPx/run.sh /usr/local/bin/runup +else + set -eu + git clone https://git.schroedercity.com/voltron/LinUPx.git /opt/LinUPx + ln -s /opt/LinUPx/run.sh /usr/local/bin/runup +fi +echo "" +echo "To run updates, use the command: runup" +echo "" +echo ""