noip-renew icon indicating copy to clipboard operation
noip-renew copied to clipboard

Can't get the script working: /usr/local/bin/noip-renew-skd.sh: 10: [[: not found

Open arooni opened this issue 3 years ago • 2 comments

 [I]  /u/l/bin  ls noip-renew.py ^C
[I]  /u/l/bin  ./noip-renew-arooni.sh
[2021/01/05 20:06:34] - Debug level: 2
[2021/01/05 20:06:34] - Opening https://www.noip.com/login...
[2021/01/05 20:06:37] - Logging in...
[2021/01/05 20:06:44] - Opening https://my.noip.com/#!/dynamic-dns...
[2021/01/05 20:06:45] - fooooooooooo.ddns.net expires in 28 days
[2021/01/05 20:06:46] - Confirmed hosts: 0
/usr/local/bin/noip-renew-skd.sh: 10: [[: not found

[I]  ~/s/noip-renew   master   ./setup.sh
No-IP Auto Renewal Script Setup.
1) Install/Repair Script            3) Uninstall Script
2) Update noip.com account details  4) Exit setup.sh
Select an option: 3
[sudo] password for arooni:
Do you want to remove all log files? (y/n): y
Script successfully uninstalled.
[I]  ~/s/noip-renew   master   ./setup.sh
No-IP Auto Renewal Script Setup.
1) Install/Repair Script            3) Uninstall Script
2) Update noip.com account details  4) Exit setup.sh
Select an option: 1
  Operating System: Ubuntu 20.04.1 LTS
Installing necessary packages...
Perform apt-get update? (y/n): n
Reading package lists... Done
Building dependency tree
Reading state information... Done
chromium-chromedriver is already the newest version (1:85.0.4183.83-0ubuntu0.20.04.2).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
cron is already the newest version (3.0pl1-136ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
chromium-browser is already the newest version (1:85.0.4183.83-0ubuntu0.20.04.2).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (20.0.2-5ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
Requirement already satisfied: selenium in /usr/local/lib/python3.8/dist-packages (3.141.0)
Requirement already satisfied: urllib3 in /usr/lib/python3/dist-packages (from selenium) (1.25.8)
Deploying the script...
Enter your No-IP Account details...
Username: *******
Password:
Installation Complete.
To change noip.com account details, please run setup.sh again.
Logs can be found in '/var/log/noip-renew/arooni'
[I]  ~/s/noip-renew   master  


arooni avatar Jan 06 '21 02:01 arooni

edit /usr/local/bin/noip-renew-skd.sh replace #!/bin/sh to #!/bin/bash

darkfriday avatar Jan 08 '21 15:01 darkfriday

made that change. thanks!

got past that error; is this expected output? do we have to be closer to the deadline to actually get the renewal working?

[I]  ~/bin  sudo /usr/local/bin/noip-renew-arooni.sh
[2021/01/12 14:31:07] - Debug level: 2
[2021/01/12 14:31:07] - Opening https://www.noip.com/login...
[2021/01/12 14:31:10] - Logging in...
[2021/01/12 14:31:18] - Opening https://my.noip.com/#!/dynamic-dns...
[2021/01/12 14:31:19] - myhostnamethatissoogreat.ddns.net expires in 21 days
[2021/01/12 14:31:20] - Confirmed hosts: 0
[I]  ~/bin  sudo crontab -e

arooni avatar Jan 12 '21 20:01 arooni