Commit f4ec18e2 by Yvon Kerdoncuff

properly get env var in cronscripts after they were added to git

parent c63b2674
Pipeline #3891 canceled with stage
#! /bin/bash #! /bin/bash
source ~/scripts/vars # Récupère le dossier contenant ce script
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/vars"
log_dir=~/cronlogs/process_picking log_dir=~/cronlogs/process_picking
MAXFILES=12960 # ~ 3 months every 5 minutes, 12 hours a day MAXFILES=12960 # ~ 3 months every 5 minutes, 12 hours a day
......
#! /bin/bash #! /bin/bash
source ~/scripts/vars # Récupère le dossier contenant ce script
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/vars"
log_dir=~/cronlogs/shifts log_dir=~/cronlogs/shifts
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