Detect old home dir #39

Merged
Ghost merged 2 commits from 25-Detect-old-home-dir into master 2019-01-16 16:48:27 +01:00
Contributor

Add a check to detect when old home dir need to be moved to .bak or deleted.

Add a check to detect when old home dir need to be moved to .bak or deleted.
Author
Contributor

@vlaborie Could you review it? Any thoughts?

@vlaborie Could you review it? Any thoughts?
benpro added a new dependency 2019-01-16 13:53:10 +01:00
benpro changed title from #25 Detect old home dir to Detect old home dir 2019-01-16 13:53:19 +01:00
benpro reviewed 2019-01-16 15:55:50 +01:00
@ -838,0 +839,4 @@
if [ "$IS_OLD_HOME_DIR" = 1 ]; then
for dir in /home/*; do
stat -c "%n has owner %u resolved as %U" "$dir" | grep -v .bak | grep -q UNKNOWN
Author
Contributor

The last grep -q can be removed for verbose output. We need to implement #30 first.

The last `grep -q` can be removed for verbose output. We need to implement #30 first.
First-time contributor

LGTM, i think #30 can be done later.

LGTM, i think #30 can be done later.
Ghost closed this pull request 2019-01-16 16:48:27 +01:00
Ghost deleted branch 25-Detect-old-home-dir 2019-01-16 16:48:32 +01:00
Sign in to join this conversation.
No description provided.