Adds hooks for secrets
This commit is contained in:
parent
63fcd502a8
commit
7a56328fad
4 changed files with 50 additions and 11 deletions
|
|
@ -6,10 +6,6 @@ loadSecretsRepo() {
|
|||
configFile="$HOME/.ssh/config"
|
||||
|
||||
if [[ -d "$secretsFolderPath/.git" ]]; then
|
||||
(
|
||||
cd "$secretsFolderPath"
|
||||
git pull --ff-only
|
||||
)
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
@ -24,13 +20,7 @@ loadSecretsRepo() {
|
|||
fi
|
||||
|
||||
git clone "$secretsGitPath" "$secretsFolderPath"
|
||||
}
|
||||
|
||||
loadSecrets() {
|
||||
secretsFolderPath="$HOME/.local/share/secrets"
|
||||
|
||||
loadSecretsRepo
|
||||
"$secretsFolderPath/deploy.sh"
|
||||
}
|
||||
|
||||
addActions loadSecrets
|
||||
addActions loadSecretsRepo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue