Skip to content
Snippets Groups Projects
Commit ba3be6aa authored by Bob Mottram's avatar Bob Mottram
Browse files

Allow password storage for root

So that local database backups are unaffected
parent 98ed130c
No related branches found
No related tags found
No related merge requests found
......@@ -247,7 +247,9 @@ if [ ${#CURR_PASSWORD} -eq 0 ]; then
else
# store password
if [ -f $NO_PASSWORD_STORE_FILE ]; then
exit 0
if [[ "$CURR_USERNAME" != 'root' ]]; then
exit 0
fi
fi
if [ ! -d ~/.passwords/$CURR_USERNAME ]; then
mkdir -p ~/.passwords/$CURR_USERNAME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment