Password hash calculation
This commit is contained in:
parent
14927cc813
commit
e961588252
|
@ -8432,7 +8432,7 @@ function install_rss_reader {
|
|||
mysql -u root --password="$MARIADB_PASSWORD" -D ttrss < $RSS_READER_PATH/schema/ttrss_schema_mysql.sql
|
||||
|
||||
# change the password from the default
|
||||
RSS_READER_ADMIN_PASSWORD_HASH=$(echo -n "${RSS_READER_ADMIN_PASSWORD}" | sha1)
|
||||
RSS_READER_ADMIN_PASSWORD_HASH=$(echo -n "${RSS_READER_ADMIN_PASSWORD}" | sha1sum | awk -F ' ' '{print $1}')
|
||||
mysql -u root --password="$MARIADB_PASSWORD" -e "update ttrss_users set pwd_hash = 'SHA1:${RSS_READER_ADMIN_PASSWORD_HASH}', salt= '' WHERE login = 'admin';" ttrss
|
||||
|
||||
# ensure that socks5 proxy is used
|
||||
|
|
Loading…
Reference in New Issue