summaryrefslogtreecommitdiffstats
path: root/adei/scripts/run-cron.sh
blob: f0539f666cfeeb137d318aeac089e79f9f4152ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/bash

printenv | grep -v affinity:container | sed -r 's/^(.*)=("?)(.*)\2$/export \1="\3"/g' > /adei/env

LOCK_FILE=.lock
(
    flock -x 10
    flock -x 11

    /opt/scripts/adei-branch.sh

) 10> /adei/cfg/$LOCK_FILE 11> /adei/src/$LOCK_FILE


cron -n -m '/usr/bin/procmail -d root'