Fix config bug in Alpine Vaultwarden (#775)

This commit is contained in:
Håvard Gjøby Thom 2024-12-13 13:33:34 +01:00 committed by GitHub
parent aab63c8db2
commit ae0684b696
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,9 @@ msg_ok "Installed Dependencies"
msg_info "Installing Alpine-Vaultwarden"
$STD apk add vaultwarden
sed -i -e 's/# export ADMIN_TOKEN=.*/export ADMIN_TOKEN='\'''\''/' -e '/^# export ROCKET_ADDRESS=0\.0\.0\.0/s/^# //' -e 's|export WEB_VAULT_ENABLED=.*|export WEB_VAULT_ENABLED=true|' /etc/conf.d/vaultwarden
sed -i -e 's|export WEB_VAULT_ENABLED=.*|export WEB_VAULT_ENABLED=true|' /etc/conf.d/vaultwarden
echo -e "export ADMIN_TOKEN=''" >>/etc/conf.d/vaultwarden
echo -e "export ROCKET_ADDRESS=0.0.0.0" >>/etc/conf.d/vaultwarden
msg_ok "Installed Alpine-Vaultwarden"
msg_info "Installing Web-Vault"

View File

@ -47,7 +47,7 @@
"type": "warning"
},
{
"text": "Build Settings for normal LXC: 6GB RAM - 6GB Storage - 4vCPU",
"text": "To set the Admin Token, run the command below (or type update) in the LXC Console.",
"type": "info"
}
]