-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unzip command not found in package generation action (#7180)
* Add install unzip command * Fix unzip command * Escalate root user privileges * Fix unzip command path * Unzip in dockefile * Change for loop * Change for loop * add ls -la * Change test plugins path * change ls * change folder name * Comment the unzip process * Clean code * Format artifact name with slash * Implement githubReference * Test set -e * Remove set -e test
- Loading branch information
1 parent
871de7e
commit 23b69cd
Showing
4 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
plugins=$(ls /tmp) | ||
echo $plugins | ||
set -e | ||
|
||
plugins=$(ls /tmp) | ||
for plugin in $plugins; do | ||
echo $plugin | ||
unzip $plugin -d /unziped/ | ||
done | ||
plugins=$(ls /tmp/unziped) | ||
for plugin in $plugins; do | ||
echo $plugin | ||
/usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin install file:///tmp/unziped/$plugin | ||
/usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin install file:///tmp/$plugin/$(ls /tmp/$plugin) | ||
done | ||
echo "All plugins installed successfully" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters