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