mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-04-14 22:31:46 +04:00
first xray
This commit is contained in:
parent
bbacfb100e
commit
c2106ca1a6
18 changed files with 482 additions and 29 deletions
26
nix/server/modify-secrets.sh
Executable file
26
nix/server/modify-secrets.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
if ! command -v nvim
|
||||
then
|
||||
echo "no nvim"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v base64
|
||||
then
|
||||
echo "no base64"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v openssl
|
||||
then
|
||||
echo "no openssl"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
env $(cat /var/lib/secrets/.env | xargs) nvim --clean -n \
|
||||
-u "$SCRIPT_DIR/modify-secrets.vim" \
|
||||
"$SCRIPT_DIR/secrets.yaml"
|
||||
Loading…
Add table
Add a link
Reference in a new issue