mirror of https://github.com/lukechilds/umbrel.git
21 changed files with 66 additions and 26 deletions
@ -1 +0,0 @@ |
|||
uipassword=moneyprintergobrrr |
@ -1 +1 @@ |
|||
{"username":"umbrel","password":"$2a$08$qlczmePU/RzbHHBFrsefkONVqflomTis92iH.pdOVItq72W2G.bGu","permissions":"*"} |
|||
{"username":"umbrel","# TODO:": "APP_PASSWORD","password":"$2a$08$qlczmePU/RzbHHBFrsefkONVqflomTis92iH.pdOVItq72W2G.bGu","permissions":"*"} |
|||
|
@ -0,0 +1,10 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Migrate legacy default password |
|||
sed -i 's/"multiPassHashed": "70c882380045d35807b45245bd49185991904ff47a5036dfe82103c49f9f0f31"/"multiPass": "'${APP_PASSWORD}'"/' $RTL_CONFIG_PATH/RTL-Config.json |
|||
sed -i 's/"multiPass": "moneyprintergobrrr"/"multiPass": "'${APP_PASSWORD}'"/' $RTL_CONFIG_PATH/RTL-Config.json |
|||
|
|||
# Migrate new password placeholder |
|||
sed -i 's/$APP_PASSWORD/'${APP_PASSWORD}'/' $RTL_CONFIG_PATH/RTL-Config.json |
|||
|
|||
exec /sbin/tini -g -- node rtl |
@ -0,0 +1,6 @@ |
|||
#!/usr/bin/env sh |
|||
|
|||
# Set password |
|||
sed -i 's/masterPassword:.*/masterPassword: '${APP_PASSWORD}'/' /data/thubConfig.yaml |
|||
|
|||
exec npm start |
Loading…
Reference in new issue