Compare commits

..

No commits in common. "master" and "test_without_lockfile" have entirely different histories.

4 changed files with 10 additions and 28 deletions

View File

@ -1,14 +1,14 @@
# 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
SEND_TO = "scan@mount-mockery.de"
# Sender
SEND_FROM = "Scanner <scan@<smtp_server>>"
SMTP_SERVER = "{{ server_ftp_scan_smtp_server }}"
SMTP_USER = "{{ server_ftp_scan_smtp_user }}"
SMTP_PASSWORD = "{{ server_ftp_scan_smtp_password }}"
SMTP_SERVER = "<smtp_server>"
SMTP_USER = "<smtp_user>"
SMTP_PASSWORD = "<smtp_password>"
# Possible log-levels: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL = "INFO"

View File

@ -1,4 +1,4 @@
#!/bin/sh
#
BASEPATH=`dirname $0`
$BASEPATH/venv/bin/python $BASEPATH/file2mail.py
python $BASEPATH/file2mail.py

View File

@ -1,24 +1,8 @@
#!/bin/bash
#!/bin/sh
#
BASEPATH=`realpath $(dirname $0)`
#
# Create venv
#
if [[ ! -e $BASEPATH/venv ]]; then
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
python3 -m venv $BASEPATH/venv
$BASEPATH/venv/bin/pip install --upgrade pip
find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r
$BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U

View File

@ -1,2 +0,0 @@
pathlib
psutil