run options

This commit is contained in:
Thomas E Lackey 2024-08-26 17:02:39 -05:00
parent e578605777
commit e74724c998

11
run.sh
View File

@ -71,6 +71,10 @@ if [[ "$CLEAN_LOGS" == "true" ]] && [[ -n "$LOG_DIR" ]]; then
rm -rf ${LOG_DIR}/* rm -rf ${LOG_DIR}/*
fi fi
if [[ ! -d "${UPLOAD_DIRECTORY}" ]]; then
mkdir -p "${UPLOAD_DIRECTORY}"
fi
STORAGE_DRIVER="${STORAGE_DRIVER}" STORAGE_DRIVER="${STORAGE_DRIVER}"
if [[ -z "${STORAGE_DRIVER}" ]]; then if [[ -z "${STORAGE_DRIVER}" ]]; then
if [[ "true" == "`is_privileged`" ]]; then if [[ "true" == "`is_privileged`" ]]; then
@ -118,6 +122,8 @@ while true; do
--state-file "${DEPLOYMENTS_DIR}/autoremove.state" \ --state-file "${DEPLOYMENTS_DIR}/autoremove.state" \
--include-tags "$INCLUDE_TAGS" \ --include-tags "$INCLUDE_TAGS" \
--exclude-tags "$EXCLUDE_TAGS" \ --exclude-tags "$EXCLUDE_TAGS" \
--lrn "$LRN" \
--min-required-payment $MIN_REQUIRED_PAYMENT \
$EXTRA_UNDEPLOY_OPTS \ $EXTRA_UNDEPLOY_OPTS \
$UPDATE_OPTS \ $UPDATE_OPTS \
--discover --discover
@ -141,6 +147,11 @@ while true; do
--include-tags "$INCLUDE_TAGS" \ --include-tags "$INCLUDE_TAGS" \
--exclude-tags "$EXCLUDE_TAGS" \ --exclude-tags "$EXCLUDE_TAGS" \
--fqdn-policy "${FQDN_POLICY:-prohibit}" \ --fqdn-policy "${FQDN_POLICY:-prohibit}" \
--lrn "$LRN" \
--min-required-payment $MIN_REQUIRED_PAYMENT \
--config-upload-dir "$UPLOAD_DIRECTORY" \
--private-key-file "$OPENPGP_PRIVATE_KEY_FILE"
--private-key-passphrase "$OPENPGP_PASSPHRASE"
$LOG_OPTS \ $LOG_OPTS \
$EXTRA_DEPLOY_OPTS \ $EXTRA_DEPLOY_OPTS \
$UPDATE_OPTS \ $UPDATE_OPTS \