mirror of
https://github.com/shokinn/.files.git
synced 2025-01-18 21:22:25 +00:00
change marker from secrets to public keys
This commit is contained in:
parent
cdf4a224a9
commit
9ec699d16e
|
@ -103,8 +103,8 @@ gen-user-key() {
|
||||||
local keyname="${1}"
|
local keyname="${1}"
|
||||||
local public_key="${2}"
|
local public_key="${2}"
|
||||||
local working_directory="${3:-$(pwd)}"
|
local working_directory="${3:-$(pwd)}"
|
||||||
local begin_marker='#-----BEGIN USER-SECRETS-----'
|
local begin_marker='#-----BEGIN USER PUBLIC KEYS-----'
|
||||||
local end_marker='#------END USER-SECRETS------'
|
local end_marker='#------END USER PUBLIC KEYS------'
|
||||||
local input_file="${working_directory}/secrets/secrets.nix"
|
local input_file="${working_directory}/secrets/secrets.nix"
|
||||||
local userkey
|
local userkey
|
||||||
|
|
||||||
|
@ -130,8 +130,8 @@ get-host-key() {
|
||||||
local target="${2}"
|
local target="${2}"
|
||||||
local type="${3:-ssh-ed25519}"
|
local type="${3:-ssh-ed25519}"
|
||||||
local working_directory="${4:-$(pwd)}"
|
local working_directory="${4:-$(pwd)}"
|
||||||
local begin_marker='#-----BEGIN SYSTEM-SECRETS-----'
|
local begin_marker='#-----BEGIN SYSTEM PUBLIC KEYS-----'
|
||||||
local end_marker='#------END SYSTEM-SECRETS------'
|
local end_marker='#------END SYSTEM PUBLIC KEYS------'
|
||||||
local input_file="${working_directory}/secrets/secrets.nix"
|
local input_file="${working_directory}/secrets/secrets.nix"
|
||||||
local hostkey
|
local hostkey
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue