mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add info note to default creds file
This commit is contained in:
parent
860b9aa5d1
commit
f845f54654
10
main.py
10
main.py
@ -367,7 +367,15 @@ if __name__ == "__main__":
|
|||||||
encoding="utf-8",
|
encoding="utf-8",
|
||||||
) as cred_file:
|
) as cred_file:
|
||||||
cred_file.write(
|
cred_file.write(
|
||||||
json.dumps({"username": "admin", "password": PASSWORD}, indent=4)
|
json.dumps(
|
||||||
|
{
|
||||||
|
"username": "admin",
|
||||||
|
"password": PASSWORD,
|
||||||
|
"info": "This is NOT where you change your password."
|
||||||
|
" This file is only a means to give you a default password.",
|
||||||
|
},
|
||||||
|
indent=4,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
os.chmod(
|
os.chmod(
|
||||||
os.path.join(APPLICATION_PATH, "app", "config", "default-creds.txt"), 0o600
|
os.path.join(APPLICATION_PATH, "app", "config", "default-creds.txt"), 0o600
|
||||||
|
Loading…
Reference in New Issue
Block a user