mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
Merge pull request #271243 from shyim/fix-opensearch-boot
nixos/opensearch: check plugins directory exists before checking content
This commit is contained in:
commit
110828e412
@ -200,7 +200,7 @@ in
|
||||
# Install plugins
|
||||
|
||||
# remove plugins directory if it is empty.
|
||||
if [ -z "$(ls -A ${cfg.dataDir}/plugins)" ]; then
|
||||
if [[ -d ${cfg.dataDir}/plugins && -z "$(ls -A ${cfg.dataDir}/plugins)" ]]; then
|
||||
rm -r "${cfg.dataDir}/plugins"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user