Update linupx-install.sh

This commit is contained in:
2018-09-10 10:39:46 -05:00
parent 6347b56d9a
commit 4ad5a77aa6

View File

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