Manual installation

In short a manual way:

  • Copy the bash script somewhere you like.
  • set execute permissions chmod 0755

Use git

If you have git and want to update the files with a simple git pull you can do it that way.

Get the files

cd /opt
git clone

Make script available anywhere

To have a single file in /usr/local/bin you can create a softlink

cd /usr/local/bin
ln -s /opt/onfilechange/onfilechange


To start an update you can use

cd /opt/onfilechange/
git pull