diff --git a/additional_install.sh b/additional_install.sh index e49093a..0609922 100755 --- a/additional_install.sh +++ b/additional_install.sh @@ -61,7 +61,7 @@ if [[ "$BITWARDEN" == "yes" ]]; then sed -i "s/DB_USER/$DB_USER/g" /tmp/bitwarden/bitwarden-secret.json; sed -i "s/DB_PASSWORD/$DB_PASSWORD/g" /tmp/bitwarden/bitwarden-secret.json; sed -i "s/DB_ROOT_PASSWORD/$DB_ROOT_PASSWORD/g" /tmp/bitwarden/bitwarden-secret.json; - sed -i "s/DOMAIN_NAME/$BITWARDEN_DOMAIN/g" /tmp/bitwarden/bitwarden-secret.json + sed -i "s#DOMAIN_NAME#$BITWARDEN_DOMAIN#g" /tmp/bitwarden/bitwarden-secret.json sed -i "s/ADMINTOKEN/$ADMIN_TOKEN/g" /tmp/bitwarden/bitwarden-secret.json if [ "$SMTP_SERVER" == "1" ]; then diff --git a/install.sh b/install.sh index efed930..bbba85c 100755 --- a/install.sh +++ b/install.sh @@ -585,6 +585,7 @@ if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ] || [ "$ANSWER" == "" ]; then echo "You can access your bitwarden admin page here: https://$BITWARDEN_DOMAIN/admin"; echo "You will find ADMIN TOKEN in this file: /etc/user/secret/bitwarden-secret.json"; echo "Would you like to run Bitwarden after install? (Y/n)"; + read -r ANSWER; if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ] || [ "$ANSWER" == "" ] ; then ADDITIONAL_SERVICES="$ADDITIONAL_SERVICES bitwarden";