Upload New File
This commit is contained in:
21
upscripts-install.sh
Normal file
21
upscripts-install.sh
Normal 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 ""
|
||||
|
||||
Reference in New Issue
Block a user