Update linupx-install.sh

This commit is contained in:
2018-09-10 11:00:55 -05:00
parent e088b14638
commit 397b61415e

View File

@@ -1,17 +1,13 @@
#!/bin/bash
# Wrapper script for install, for easier execution via URL.
if [ "$EUID" -ne 0 ]; then
sudo set -eu
# sudo git -c http.sslVerify=false clone https://git.schroedercity.com/voltron/LinUPx.git /opt/LinUPx
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 -c http.sslVerify=false clone https://git.schroedercity.com/voltron/LinUPx.git /opt/LinUPx
git clone https://git.schroedercity.com/voltron/LinUPx.git /opt/LinUPx
ln -s /opt/LinUPx/run.sh /usr/local/bin/runup
fi
if [ "$EUID" -ne 0 ]; then PREFIX='sudo'; else PREFIX=''; fi
$PREFIX set -eu
# $PREFIX git -c http.sslVerify=false clone https://git.schroedercity.com/voltron/LinUPx.git /opt/LinUPx
$PREFIX git clone https://git.schroedercity.com/voltron/LinUPx.git /opt/LinUPx
$PREFIX ln -s /opt/LinUPx/run.sh /usr/local/bin/runup
echo ""
echo "To run updates, use the command: runup"
echo ""