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
2c1a3415
Commit
2c1a3415
authored
Nov 05, 2024
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify cronscripts in order to create ~/cronlogs/xxx dir if they do not exist
parent
90362c2a
Pipeline
#3893
failed with stage
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
process_picking.sh
cronscripts/process_picking.sh
+2
-0
record_absences.sh
cronscripts/record_absences.sh
+2
-0
No files found.
cronscripts/process_picking.sh
View file @
2c1a3415
...
...
@@ -6,6 +6,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source
"
$SCRIPT_DIR
/vars"
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
curl
-o
${
log_dir
}
/reception_process_
$(
date +%F_%T
)
.log http://
$ip
:
$dj_port
/reception/po_process_picking
...
...
cronscripts/record_absences.sh
View file @
2c1a3415
...
...
@@ -6,6 +6,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source
"
$SCRIPT_DIR
/vars"
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)
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