Loading bin/run-import.sh +12 −0 Changes for bin/run-import.sh: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -28,6 +28,18 @@ APP_DIR=$(cd ${CURR_DIR}/.. && pwd) echo "Répertoire courant : $CURR_DIR" echo "Répertoire de l'appli : $APP_DIR" # Avorte si le script est déjà en cours d'exécution (avec les mêmes arguments) LOCK_FILE=/run/$(basename $0)_${ETAB}_${SERVICE}.lock echo "Lock file : $LOCK_FILE" exec 200>$LOCK_FILE flock -n 200 if [ $? -eq 1 ]; then echo "Script $(realpath $0) déjà en cours d'exécution ($LOCK_FILE). Stop !" exit 1 fi echo function run() { service=$1 ( Loading Loading
bin/run-import.sh +12 −0 Changes for bin/run-import.sh: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -28,6 +28,18 @@ APP_DIR=$(cd ${CURR_DIR}/.. && pwd) echo "Répertoire courant : $CURR_DIR" echo "Répertoire de l'appli : $APP_DIR" # Avorte si le script est déjà en cours d'exécution (avec les mêmes arguments) LOCK_FILE=/run/$(basename $0)_${ETAB}_${SERVICE}.lock echo "Lock file : $LOCK_FILE" exec 200>$LOCK_FILE flock -n 200 if [ $? -eq 1 ]; then echo "Script $(realpath $0) déjà en cours d'exécution ($LOCK_FILE). Stop !" exit 1 fi echo function run() { service=$1 ( Loading