mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
use admin and Password B for basic auth
This commit is contained in:
parent
47cb49e5a4
commit
e283c345fc
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||
sudo ln -sf /etc/nginx/sites-available/blitzweb.conf /etc/nginx/sites-enabled/
|
||||
|
||||
if ! [ -f /etc/nginx/.htpasswd ]; then
|
||||
# ToDo(frennkie) hardcoded admin:changeme <- change it!
|
||||
echo "changeme" | sudo htpasswd -c -i /etc/nginx/.htpasswd admin
|
||||
PASSWORD_B=$(sudo cat /mnt/hdd/${network}/${network}.conf | grep rpcpassword | cut -c 13-)
|
||||
echo "${PASSWORD_B}" | sudo htpasswd -c -i /etc/nginx/.htpasswd admin
|
||||
sudo chown www-data:www-data /etc/nginx/.htpasswd
|
||||
sudo chmod 640 /etc/nginx/.htpasswd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue