Ansible adaptions
This commit is contained in:
parent
faae45b030
commit
2540e1536a
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"editor.formatOnSave": true,
|
"python.defaultInterpreterPath": "./venv/bin/python",
|
||||||
"autopep8.args": ["--max-line-length=150"],
|
"autopep8.args": ["--max-line-length=150"],
|
||||||
"python.formatting.provider": "none",
|
|
||||||
"[python]": {
|
"[python]": {
|
||||||
|
"python.formatting.provider": "none",
|
||||||
"editor.defaultFormatter": "ms-python.autopep8",
|
"editor.defaultFormatter": "ms-python.autopep8",
|
||||||
"editor.formatOnSave": true
|
"editor.formatOnSave": true
|
||||||
},
|
},
|
||||||
"editor.fontSize": 16,
|
"editor.fontSize": 14,
|
||||||
"emmet.includeLanguages": { "django-html": "html" },
|
"emmet.includeLanguages": { "django-html": "html" },
|
||||||
"python.testing.pytestArgs": ["-v", "--cov", "--cov-report=xml", "__test__"],
|
"python.testing.pytestArgs": ["-v", "--cov", "--cov-report=xml", "__test__"],
|
||||||
"python.testing.unittestEnabled": false,
|
"python.testing.unittestEnabled": false,
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
# Folder to be monitored for new files
|
# Folder to be monitored for new files
|
||||||
TARGET_FOLDER = "/home/scan"
|
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-Buchen <scan@mount-mockery.de>"
|
SEND_FROM = "Scanner <scan@<smtp_server>>"
|
||||||
SMTP_SERVER = "mount-mockery.de"
|
SMTP_SERVER = "<smtp_server>"
|
||||||
SMTP_USER = "smtp-sendmail"
|
SMTP_USER = "<smtp_user>"
|
||||||
SMTP_PASSWORD = "----XXX----"
|
SMTP_PASSWORD = "<smtp_password>"
|
||||||
|
|
||||||
# Possible log-levels: DEBUG, INFO, WARNING, ERROR
|
# Possible log-levels: DEBUG, INFO, WARNING, ERROR
|
||||||
LOG_LEVEL = "INFO"
|
LOG_LEVEL = "INFO"
|
||||||
|
8
init_venv
Executable file
8
init_venv
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
BASEPATH=`realpath $(dirname $0)`
|
||||||
|
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user