[administration/console.md]Fixing a bug in the Apache Karaf change password command (#611)

This command will remove the comma which makes the new password unusable so it needs put a "," in the replacement string as well.
For comparison look at the password change function which has the "," in both the search and replace.
https://github.com/openhab/openhabian/blob/master/functions/passwords.sh
sed -i "s/openhab = .*,/openhab = $passwordChange,/g" /var/lib/openhab2/etc/users.properties
pull/614/head
dougmcdorman 2018-01-01 12:49:18 -08:00 committed by Jerome L
parent d2c3b160be
commit 4a26f9b53a
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ Alternately, run the following Linux shell command, which will perform the repla
Substitute `securePassword` with your desired password.
```shell
sudo sed -i -e "s/openhab = .*,/openhab = securePassword/g" /var/lib/openhab2/etc/users.properties
sudo sed -i -e "s/openhab = .*,/openhab = securePassword,/g" /var/lib/openhab2/etc/users.properties
```
Depending on your system, you may have to [change the directory](#console-settings-files-and-directories) at the end of the command.