Small fixes
This commit is contained in:
parent
f9b81db550
commit
0de69168af
23
setup.sh
23
setup.sh
@ -1,7 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Install script for Digital Ocean ddns script. You can also do this manually.
|
||||||
|
# Check https://gitlab.pm/rune/ddns
|
||||||
|
#
|
||||||
|
# GPLv3 Rune Olsen (https://blog.rune.pm) 2023
|
||||||
|
#
|
||||||
|
|
||||||
wget https://gitlab.pm/rune/ddns/src/branch/main/src/do-ddns/ddns.py
|
wget https://gitlab.pm/rune/ddns/src/branch/main/src/do-ddns/ddns.py
|
||||||
wget https://gitlab.pm/rune/ddns/src/branch/main/src/do-ddns/requirements.txt
|
wget https://gitlab.pm/rune/ddns/src/branch/main/src/do-ddns/requirements.txt
|
||||||
sudo mv ddns.py /usr/local/bin/ddns
|
echo "ddns downloaded. Moving to /usr/local/bin and setting execute (run) rights on app."
|
||||||
sudo chmod +x /usr/local/bin/ddns
|
echo "Your computer will ask for password since the rest of the install is done with sudo."
|
||||||
python3 pip3 -r requirements.txt
|
read -n1 -s -r -p $'Press space to continue or any other key to cancle\n' key
|
||||||
exit 0
|
if [ "$key" = ' ' ]; then
|
||||||
|
sudo mv ddns.py /usr/local/bin/ddns
|
||||||
|
sudo chmod +x /usr/local/bin/ddns
|
||||||
|
python3 pip3 -r requirements.txt
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "Install aborted by user!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user