fix
This commit is contained in:
@@ -48,16 +48,16 @@ printf " \033[1;32mE\033[0m Created directory my-ente\n"
|
||||
curl -fsSOL https://raw.githubusercontent.com/ente-io/ente/main/server/quickstart/compose.yaml
|
||||
printf " \033[1;32mN\033[0m Fetched compose.yaml\n"
|
||||
|
||||
gen_password () { head -c 12 /dev/urandom | base64 -w 0 }
|
||||
gen_password () { head -c 12 /dev/urandom | base64 -w 0; }
|
||||
|
||||
# crypto_secretbox_KEYBYTES = 32
|
||||
gen_key () { head -c 32 /dev/urandom | base64 -w 0 }
|
||||
gen_key () { head -c 32 /dev/urandom | base64 -w 0; }
|
||||
|
||||
# crypto_generichash_BYTES_MAX = 64
|
||||
gen_hash () { head -c 64 /dev/urandom | base64 -w 0 }
|
||||
gen_hash () { head -c 64 /dev/urandom | base64 -w 0; }
|
||||
|
||||
# Like gen_key but sodium_base64_VARIANT_URLSAFE which converts + to -, / to _
|
||||
gen_jwt_secret () { head -c 32 /dev/urandom | base64 -w 0 | tr '+/' '-_' }
|
||||
gen_jwt_secret () { head -c 32 /dev/urandom | base64 -w 0 | tr '+/' '-_'; }
|
||||
|
||||
replace_in_compose () {
|
||||
sed "$1" compose.yaml > compose.yaml.new
|
||||
|
||||
Reference in New Issue
Block a user