Skip to content

negrel/OVH-dynHost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OVH Dynamic Host

This repo contain a bash script for updating OVH dynamic host.

How to use

Firstly, you must set some environments variables :

  • OVH_USERNAME (your DynHost username)
  • OVH_PASSWD (your DynHost password)
  • OVH_HOSTNAME (your DynHost subdomain)

Run the script

This script set an environment variable to store external ip address and compare it to check if your ip address have change. The variable is EXTERNAL_IP. If you want the script to work correctly you must run it like this :

# If you have set the environments variables (don't forget the first dot)
$ . ./dynHost.bash
# else run it with
$ OVH_USERNAME="my_username" OVH_PASSWD="my_passwd" OVH_HOSTNAME="my_hostname" . ./dynHost.bash 

Log file

By default the log file is created from where the script is launch, you can provide a custom path by setting the log variable.

$ LOG="/home/USER/here" . ./dynHost.bash

🌠 Show your support

Please give a ⭐ if this project helped you!

📜 License

MIT © Alexandre Negrel

Releases

No releases published

Packages

No packages published

Languages