Commit 2c1a3415 by Yvon Kerdoncuff

modify cronscripts in order to create ~/cronlogs/xxx dir if they do not exist

parent 90362c2a
Pipeline #3893 failed with stage
...@@ -6,6 +6,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ...@@ -6,6 +6,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/vars" source "$SCRIPT_DIR/vars"
log_dir=~/cronlogs/process_picking log_dir=~/cronlogs/process_picking
mkdir -p "$log_dir" # Crée le dossier s'il n'existe pas
MAXFILES=12960 # ~ 3 months every 5 minutes, 12 hours a day MAXFILES=12960 # ~ 3 months every 5 minutes, 12 hours a day
curl -o ${log_dir}/reception_process_$(date +%F_%T).log http://$ip:$dj_port/reception/po_process_picking curl -o ${log_dir}/reception_process_$(date +%F_%T).log http://$ip:$dj_port/reception/po_process_picking
......
...@@ -6,6 +6,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ...@@ -6,6 +6,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/vars" source "$SCRIPT_DIR/vars"
log_dir=~/cronlogs/shifts log_dir=~/cronlogs/shifts
mkdir -p "$log_dir" # Crée le dossier s'il n'existe pas
MAXFILES=2920 # 1 year (8 times a day) MAXFILES=2920 # 1 year (8 times a day)
curl -o ${log_dir}/$(date +%F_%T)_absences.log http://$ip:$dj_port/members/record_absences curl -o ${log_dir}/$(date +%F_%T)_absences.log http://$ip:$dj_port/members/record_absences
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment