mirror of
https://github.com/vhaudiquet/mymachine.git
synced 2025-12-19 04:26:05 +00:00
Added sops
This commit is contained in:
@@ -183,6 +183,7 @@ PACKAGES=(
|
|||||||
docker-compose
|
docker-compose
|
||||||
# Others
|
# Others
|
||||||
pre-commit
|
pre-commit
|
||||||
|
sops
|
||||||
)
|
)
|
||||||
|
|
||||||
EXTRA_PACKAGES=(
|
EXTRA_PACKAGES=(
|
||||||
|
|||||||
@@ -115,6 +115,11 @@ install_ligconsolata() {
|
|||||||
&& cp Inconsolata-3.000/fonts/otf/*.otf "/usr/local/share/fonts/" && rm -rf Inconsolata-3.000 v3.000.zip
|
&& cp Inconsolata-3.000/fonts/otf/*.otf "/usr/local/share/fonts/" && rm -rf Inconsolata-3.000 v3.000.zip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_sops() {
|
||||||
|
curl -LO https://github.com/getsops/sops/releases/download/v3.10.2/sops-v3.10.2.linux.amd64 && \
|
||||||
|
mv sops-v3.10.2.linux.amd64 /usr/local/bin/sops && chmod +x /usr/local/bin/sops
|
||||||
|
}
|
||||||
|
|
||||||
export EXTRA_INSTALL_MESSAGE="Installing snap packages"
|
export EXTRA_INSTALL_MESSAGE="Installing snap packages"
|
||||||
extra_init() {
|
extra_init() {
|
||||||
# Install ghostty
|
# Install ghostty
|
||||||
@@ -189,6 +194,16 @@ extra_init() {
|
|||||||
else
|
else
|
||||||
erase_text "kubectl"
|
erase_text "kubectl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# SOPS
|
||||||
|
echo -ne "sops"
|
||||||
|
install_sops >/dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo ""
|
||||||
|
echo -e "${BRed}Could not install sops. Skipping.${NC}"
|
||||||
|
else
|
||||||
|
erase_text "sops"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
extra_finish() {
|
extra_finish() {
|
||||||
|
|||||||
Reference in New Issue
Block a user