Upload New File

This commit is contained in:
2017-10-04 23:24:15 -05:00
parent e20a4f49ad
commit 04fde61e53

21
upscripts-install.sh Normal file
View File

@@ -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 ""