22 lines
679 B
Bash
22 lines
679 B
Bash
#!/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 ""
|
|
|