mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-15 21:08:20 +08:00
Make failure to check file stop the deployment
Before this, checker issues were only logged. This stops the deployment if any configuration is incorrect.
This commit is contained in:
@@ -108,12 +108,15 @@ _preprocess_deployfile() {
|
|||||||
done
|
done
|
||||||
IFS=$OLDIFS
|
IFS=$OLDIFS
|
||||||
|
|
||||||
if [ -n "$found_file" ]; then
|
if [ -z "$found_file" ];
|
||||||
_check_deployfile "$DOMAIN_PATH/$found_file"
|
then
|
||||||
else
|
|
||||||
_err "Deploy file not found. Go to https://github.com/acmesh-official/acme.sh/wiki/deployhooks#36-deploying-to-multiple-services-with-the-same-hooks to see how to create one."
|
_err "Deploy file not found. Go to https://github.com/acmesh-official/acme.sh/wiki/deployhooks#36-deploying-to-multiple-services-with-the-same-hooks to see how to create one."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
if ! _check_deployfile "$DOMAIN_PATH/$found_file"; then
|
||||||
|
_err "Deploy file is not valid: $DOMAIN_PATH/$found_file"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "$DOMAIN_PATH/$found_file"
|
echo "$DOMAIN_PATH/$found_file"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user