Compare commits
No commits in common. "master" and "test_without_lockfile" have entirely different histories.
master
...
test_witho
@ -1,14 +1,14 @@
|
|||||||
# Folder to be monitored for new files
|
# Folder to be monitored for new files
|
||||||
TARGET_FOLDER = "{{ server_ftp_scan_target_folder }}"
|
TARGET_FOLDER = "<target_folder>"
|
||||||
|
|
||||||
# Recipiant for the files found in TARGET_PATH
|
# Recipiant for the files found in TARGET_PATH
|
||||||
SEND_TO = "scan@mount-mockery.de"
|
SEND_TO = "scan@mount-mockery.de"
|
||||||
|
|
||||||
# Sender
|
# Sender
|
||||||
SEND_FROM = "Scanner <scan@<smtp_server>>"
|
SEND_FROM = "Scanner <scan@<smtp_server>>"
|
||||||
SMTP_SERVER = "{{ server_ftp_scan_smtp_server }}"
|
SMTP_SERVER = "<smtp_server>"
|
||||||
SMTP_USER = "{{ server_ftp_scan_smtp_user }}"
|
SMTP_USER = "<smtp_user>"
|
||||||
SMTP_PASSWORD = "{{ server_ftp_scan_smtp_password }}"
|
SMTP_PASSWORD = "<smtp_password>"
|
||||||
|
|
||||||
# Possible log-levels: DEBUG, INFO, WARNING, ERROR
|
# Possible log-levels: DEBUG, INFO, WARNING, ERROR
|
||||||
LOG_LEVEL = "INFO"
|
LOG_LEVEL = "INFO"
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
BASEPATH=`dirname $0`
|
BASEPATH=`dirname $0`
|
||||||
$BASEPATH/venv/bin/python $BASEPATH/file2mail.py
|
python $BASEPATH/file2mail.py
|
||||||
|
26
init_venv
26
init_venv
@ -1,24 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
BASEPATH=`realpath $(dirname $0)`
|
BASEPATH=`realpath $(dirname $0)`
|
||||||
|
|
||||||
#
|
python3 -m venv $BASEPATH/venv
|
||||||
# Create venv
|
$BASEPATH/venv/bin/pip install --upgrade pip
|
||||||
#
|
find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r
|
||||||
if [[ ! -e $BASEPATH/venv ]]; then
|
$BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U
|
||||||
python3 -m venv $BASEPATH/venv > /dev/null 2>&1
|
|
||||||
# $BASEPATH/venv/bin/pip install --upgrade pip
|
|
||||||
find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r > /dev/null 2>&1
|
|
||||||
echo "venv changed"
|
|
||||||
fi
|
|
||||||
#
|
|
||||||
# Update venv modules
|
|
||||||
#
|
|
||||||
for req_mod in $($BASEPATH/venv/bin/pip list --format=json | jq -r '.[] | .name'); do
|
|
||||||
$BASEPATH/venv/bin/pip install -U $req_mod | grep install > /dev/null 2>&1
|
|
||||||
if [[ "$?" -eq "0" ]]; then
|
|
||||||
echo $req_mod changed
|
|
||||||
fi
|
|
||||||
|
|
||||||
done
|
|
||||||
#|xargs -n1 $BASEPATH/venv/bin/pip install -U
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
pathlib
|
|
||||||
psutil
|
|
Loading…
x
Reference in New Issue
Block a user