Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deletion of home directory #4

Closed
danjde opened this issue Sep 28, 2015 · 5 comments
Closed

deletion of home directory #4

danjde opened this issue Sep 28, 2015 · 5 comments

Comments

@danjde
Copy link
Contributor

danjde commented Sep 28, 2015

Hi neurobin,

running (on Ubuntu 14.04) by JLstart "clean" script, result the deletion of the live home directory created on chroot environment, with or without "n" answer. And no echo "........edit/home cleaned!......" appears with or witout y/n

echo -e "\n...............Time is value.............\n......you have $timeout seconds each to answere the following questions.....\n......if not answered, I will take 'n' as default (be ready)...\n"
read -t $timeout -p "Want to retain edit/home directory? (y/n)?: " home
if [ "$home" != "y" ] && [ "$home" != "Y" ]; then
rm -rf edit/home/*
echo "........edit/home cleaned!......"
fi

davide

@neurobin
Copy link
Owner

With or Without "n" answer are the same i.e only "y" answer will make it yes, everything else (including an empty string which is returned by simply hitting Enter without putting anything as an answer) will take the answer as "no".

"no" is the default answer for all of the yes/no type questions. You need to put "y" or "Y" to make it "yes".

@danjde
Copy link
Contributor Author

danjde commented Sep 30, 2015

Ok, with "y" the home directory still not cleared. Well?

here a specific part the output from Lxde Terminal:

...............Time is value.............
......you have 120 seconds each to answere the following questions.....
......if not answered, I will take 'n' as default (be ready)...

Want to retain edit/home directory? (y/n)?: y
\n......initrd archive type: initrd.lz detected!


.....................Rebuilding initrd!....................

thanks

@neurobin
Copy link
Owner

Want to retain edit/home directory? (y/n)?: y
This means you want to retain the home directory, i.e everything in home directory will be kept as it is.
If you gave n (or nothing) as the answer it would take it as no, you don't want to retain the home directory i.e clear the home directory.

I am kinda confused though, I was under the impression that you wanted to keep the home directory intact (not cleared).

@danjde
Copy link
Contributor Author

danjde commented Sep 30, 2015

Yes, I want to keep the home directory created on chroot environment.

I think that should be more complete the "echo outp :-)ut" for both the choices.
For me this was a trouble :-)

@neurobin
Copy link
Owner

I see, I got it now. There is no printed message like "home kept intact" and you were wondering about that. Well, home is intact if there is nothing printed about it.

I will update it though (with a message like the above one) in next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants