Conversation
outdooracorn
left a comment
There was a problem hiding this comment.
I've not tested this yet, however I have a suggestion around where to save the cookie file :)
|
|
||
| # This script should create a wiki for a user account on a local wbaas cluster with the credentials below. Do not use this in production! | ||
|
|
||
| COOKIE_JAR=~/".wbaas.dev.cookies.txt" |
There was a problem hiding this comment.
A pet peeve of mine is developers cluttering up the home dir with dot files 😅
I suggest we follow the XDG Base Directory Specification and use something like $XDG_STATE_HOME.
$XDG_STATE_HOMEdefines the base directory relative to which user-specific state files should be stored. If$XDG_STATE_HOMEis either not set or empty, a default equal to$HOME/.local/stateshould be used.
The
$XDG_STATE_HOMEcontains state data that should persist between (application) restarts, but that is not important or portable enough to the user that it should be stored in$XDG_DATA_HOME.
| COOKIE_JAR=~/".wbaas.dev.cookies.txt" | |
| COOKIE_JAR="${XDG_STATE_HOME:-$HOME/.local/state}/wbaas.dev/cookies.txt" |
Or is this something that needs to exist outside the repo? It could live inside the repo and be added to the .gitignore file?
fixes local convenience script
Bug: T416720