Remove warning passing arguments to find
This commit is contained in:
@@ -105,7 +105,7 @@ function setup_salt_keys()
|
|||||||
salt-key --gen-signature --auto-create --pub ${SALT_KEYS_DIR}/master.pub --signature-path ${SALT_KEYS_DIR}
|
salt-key --gen-signature --auto-create --pub ${SALT_KEYS_DIR}/master.pub --signature-path ${SALT_KEYS_DIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for pub_key in $(find ${SALT_KEYS_DIR} -type f -maxdepth 1); do
|
for pub_key in $(find ${SALT_KEYS_DIR} -maxdepth 1 -type f); do
|
||||||
if [[ ${pub_key} =~ .*\.pem$ ]]; then
|
if [[ ${pub_key} =~ .*\.pem$ ]]; then
|
||||||
chmod 400 ${pub_key}
|
chmod 400 ${pub_key}
|
||||||
else
|
else
|
||||||
@@ -113,7 +113,7 @@ function setup_salt_keys()
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
find ${SALT_KEYS_DIR}/minions* -type f -maxdepth 1 -exec chmod 644 {} \;
|
find ${SALT_KEYS_DIR}/minions* -maxdepth 1 -type f -exec chmod 644 {} \;
|
||||||
find ${SALT_HOME} -path ${SALT_KEYS_DIR}/\* -prune -o -print0 | xargs -0 chown -h ${SALT_USER}:
|
find ${SALT_HOME} -path ${SALT_KEYS_DIR}/\* -prune -o -print0 | xargs -0 chown -h ${SALT_USER}:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user