2023-03-22 11:30:39 +01:00
|
|
|
#!/bin/bash
|
2023-03-22 11:51:30 +01:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
2023-03-22 12:13:38 +01:00
|
|
|
wget https://gitlab.pm/rune/ddns/raw/branch/main/ddns.py & wget https://gitlab.pm/rune/ddns/raw/branch/main/requirements.txt
|
2023-03-22 12:10:40 +01:00
|
|
|
sleep 5
|
2023-03-22 11:51:30 +01:00
|
|
|
echo "ddns downloaded. Moving to /usr/local/bin and setting execute (run) rights on app."
|
|
|
|
echo "Your computer will ask for password since the rest of the install is done with sudo."
|
2023-03-22 12:08:08 +01:00
|
|
|
echo "Press any key to continue. Press ctrl+c to cancel"
|
2023-03-22 12:13:38 +01:00
|
|
|
sleep 2
|
2023-03-22 12:08:08 +01:00
|
|
|
read -n 1
|
2023-03-22 12:13:38 +01:00
|
|
|
sleep 5
|
2023-03-22 12:15:40 +01:00
|
|
|
sudo mv ddns.py /usr/local/bin/ddns && sudo chmod +x /usr/local/bin/ddns && sudo pip3 -r requirements.txt && rm requirements.txt && exit 0
|