ddns/setup.sh
2023-03-22 11:58:38 +01:00

18 lines
666 B
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/raw/branch/main/ddns.py
wget https://gitlab.pm/rune/ddns/raw/branch/main/requirements.txt
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."
read -n 1 -r -s -p $'Press enter to continue...\n'
sudo mv ddns.py /usr/local/bin/ddns
sudo chmod +x /usr/local/bin/ddns
python3 pip3 -r requirements.txt
rm requirements.txt
exit 0