sivran 2017-02-02 20:18:31
hack me pleae
crackotage 2017-02-02 20:20:59
353!
slax0r 2017-02-02 20:34:04
I'm trying to remove a directory from a debian docker container, and the rm command reports that the directory isn't empty, which is true, but shouldn't -rf ignore that? http://sprunge.us/KdEB
sivrran111 2017-02-02 20:34:27
yes ignore that
slax0r 2017-02-02 20:35:07
what do you mean ignore that? the dir isn't removed...
sivrran111 2017-02-02 20:35:21
ah indeed
sivrran111 2017-02-02 20:35:49
but you need to figure this one out using simple ogic grasshopper
sivrran111 2017-02-02 20:35:57
logic
sivrran111 2017-02-02 20:36:30
my main profession is making meth, sorry
jelly 2017-02-02 20:37:45
slax0r: which debian is this, and is there anything inside /var/www/html/ directory after that command
slax0r 2017-02-02 20:38:00
jelly: jessie
slax0r 2017-02-02 20:38:32
I don't know if anything is in that dir, because this happens durring container build, and of course, docker stops the build after the error
slax0r 2017-02-02 20:38:45
but on the next build run the index.html file is still in there
slax0r 2017-02-02 20:39:03
and, jessie, it's jessie
jelly 2017-02-02 20:39:40
then figure it out first.
slax0r 2017-02-02 20:40:16
that might be a bit hard, don't you think?
jelly 2017-02-02 20:40:23
no?
jelly 2017-02-02 20:40:47
if you can run whoami and rm, what stops you from running a second ls after that?
slax0r 2017-02-02 20:41:47
well, build stops after an error, let me try a rm -rf /var/www/* ; exit 0 in build script, maybe it will proceed with the build
jelly 2017-02-02 20:43:01
doing things with /path/* is bad form anyway, prone to errors
slax0r 2017-02-02 20:43:43
agreed, rm -rf /var/www doesn't fix either though