mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
corrected Python file execution argument
This commit is contained in:
parent
5d489d9cb5
commit
4ef581f9f8
@ -255,7 +255,7 @@ function check_config_agreed {
|
||||
return 1
|
||||
fi
|
||||
local current_directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
local yaml_agreed=$(python check "${current_directory}"/checkagree.py "${STORAGE_ROOT}/settings.yaml")
|
||||
local yaml_agreed=$(python "${current_directory}"/checkagree.py check "${STORAGE_ROOT}/settings.yaml")
|
||||
if [ "$yaml_agreed" -eq "true"]; then
|
||||
return 0
|
||||
fi
|
||||
@ -274,8 +274,8 @@ function set_config_agreed {
|
||||
fi
|
||||
|
||||
local current_directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
local yaml_agreed=$(python set "${current_directory}"/checkagree.py "${STORAGE_ROOT}settings.yaml")
|
||||
if [ "$yaml_agreed" == "true"]; then
|
||||
local yaml_agreed=$(python "${current_directory}"/checkagree.py set "${STORAGE_ROOT}settings.yaml"; echo $?)
|
||||
if [ "$yaml_agreed" == "true" ]; then
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
|
Loading…
Reference in New Issue
Block a user