Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
f4ec18e2
Commit
f4ec18e2
authored
Nov 05, 2024
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
properly get env var in cronscripts after they were added to git
parent
c63b2674
Pipeline
#3891
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
process_picking.sh
cronscripts/process_picking.sh
+4
-1
record_absences.sh
cronscripts/record_absences.sh
+5
-1
No files found.
cronscripts/process_picking.sh
View file @
f4ec18e2
#! /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
...
...
cronscripts/record_absences.sh
View file @
f4ec18e2
#! /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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment