-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#49 renames key additional.plugin -> plugins/additional
- Loading branch information
Christoph Wolfes
committed
Mar 10, 2020
1 parent
4cbea48
commit a58e03b
Showing
5 changed files
with
27 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
|
||
CURRENT_KEY="${1}" | ||
NEW_KEY="${2}" | ||
|
||
if doguctl config "${CURRENT_KEY}"; then | ||
echo "Migrating key ${CURRENT_KEY} to ${NEW_KEY}" | ||
val=$(doguctl config "${CURRENT_KEY}") | ||
doguctl config "${NEW_KEY}" "${val}" | ||
if [[ $? -eq 0 ]]; then | ||
doguctl config --remove "${CURRENT_KEY}" | ||
echo "Keymigration finished successfully" | ||
fi | ||
else | ||
echo "No Keymigration required" | ||
fi | ||
|
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