From 04fde61e5312a1f23fc9115edde1ca9c026a095f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 4 Oct 2017 23:24:15 -0500 Subject: [PATCH] Upload New File --- upscripts-install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 upscripts-install.sh diff --git a/upscripts-install.sh b/upscripts-install.sh new file mode 100644 index 0000000..d3c4f92 --- /dev/null +++ b/upscripts-install.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Wrapper script for install, for easier execution via URL. + +if [ "$EUID" -ne 0 ]; then + sudo set -eu + sudo mkdir /opt/ubuntu-upscripts + sudo git clone https://github.com/voltron80/ubuntu-upscripts.git /opt/ubuntu-upscripts + sudo ln -s /opt/ubuntu-upscripts/run.sh /usr/local/bin/runup + sudo rm -f /opt/ubuntu-upscripts/upscripts-install.sh +else + set -eu + mkdir /opt/ubuntu-upscripts + git clone https://github.com/voltron80/ubuntu-upscripts.git /opt/ubuntu-upscripts + ln -s /opt/ubuntu-upscripts/run.sh /usr/local/bin/runup + rm -f /opt/ubuntu-upscripts/upscripts-install.sh +fi +echo "" +echo "To run, simply type: runup" +echo "" +echo "" +