delete chmod for upgrade

This commit is contained in:
vcerenu
2024-03-05 11:41:43 -03:00
parent a733046471
commit b4af946000
4 changed files with 2 additions and 16 deletions
@@ -24,11 +24,6 @@ run_as_other_user_if_needed() {
fi
}
set_correct_permOwner() {
find / -group 1000 -exec chown :999 {} +;
find / -user 1000 -exec chown 999 {} +;
}
# Allow user specify custom CMD, maybe bin/opensearch itself
# for example to directly specify `-E` style parameters for opensearch on k8s
# or simply to run /bin/bash to check the image
@@ -95,6 +90,4 @@ fi
# touch "/var/lib/wazuh-indexer/.flag"
#fi
set_correct_permOwner
run_as_other_user_if_needed /usr/share/wazuh-indexer/bin/opensearch <<<"$KEYSTORE_PASSWORD"