Alternc  latest
Alternc logiel libre pour l'hébergement
inotify_do_actions.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 # Launch do_actions.php if $INOTIFY_DO_ACTION exist
4 
5 . /etc/alternc/local.sh
6 
7 LOGGER="/usr/bin/logger"
8 
9 if [ -e "$INOTIFY_DO_ACTION" ] ; then
10  if [ -x "$LOGGER" ] ; then
11  $LOGGER -t ALTERNC do_actions
12  fi
13  /usr/lib/alternc/do_actions.php
14  rm "$INOTIFY_DO_ACTION"
15 fi
16 
17 exit 1