Detect old home dir #25

Closed
opened 2018-12-20 10:50:23 +01:00 by benpro · 0 comments
Contributor

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

Exemple based on GIT/evolix-private/files/move-old-dir-in-home.sh.

for dir in /home/*; do
  stat -c "%n has owner %u resolved as %U" "$dir" | grep -v .bak | grep UNKNOWN
  if [[ ${PIPESTATUS[2]} == 0 ]]; then
    # There is at least one dir matching
    echo 'IS OLD_HOME_DIR FAILED!'
  fi
done
Add a check to detect when old home dir need to be moved to .bak or deleted. Exemple based on `GIT/evolix-private/files/move-old-dir-in-home.sh`. ``` for dir in /home/*; do stat -c "%n has owner %u resolved as %U" "$dir" | grep -v .bak | grep UNKNOWN if [[ ${PIPESTATUS[2]} == 0 ]]; then # There is at least one dir matching echo 'IS OLD_HOME_DIR FAILED!' fi done ```
benpro added the
enhancement
label 2018-12-20 10:50:23 +01:00
benpro started working 2019-01-16 13:32:35 +01:00
benpro stopped working 2019-01-16 13:51:15 +01:00
18min 40s
benpro added a new dependency 2019-01-16 13:53:10 +01:00
Ghost closed this issue 2019-01-17 15:01:48 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 18 minutes 40 seconds
benpro
18 minutes 40 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
Reference: evolix/evocheck#25
No description provided.