Midstream, this may destroy the world
This commit is contained in:
@@ -22,8 +22,10 @@ fi
|
||||
NAME="$2"
|
||||
op="$3"
|
||||
|
||||
PARAMS=$(disco-param get ${HOSTNAME}/users/${op}/${NAME})
|
||||
getent ${GETENT} | grep "^${NAME}" 2>&1 | disco-shutup
|
||||
set -x
|
||||
|
||||
PARAMS=$(disco-param get ${HOSTNAME}/${GETENT}s/${op}/${NAME})
|
||||
BLAH=$(getent ${GETENT} | grep "^${NAME}" 2>&1)
|
||||
RETVAL=$?
|
||||
if [ $RETVAL -eq 0 ] && [ "$op" == "absent" ]; then
|
||||
${DEL} ${NAME}
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
disco-linux-ents
|
||||
entities
|
||||
groups
|
||||
|
||||
@@ -130,6 +130,11 @@ function spin() {
|
||||
if [ "$NOOP" == "" ]; then
|
||||
# Now for the real rsync back home
|
||||
rsync -aWH /var/disco/testfs/real/scratchfs/. /
|
||||
cd /var/disco/testfs/real/scratchfs/.unionfs
|
||||
for file in $(find . -iname "_HIDDEN~" -type f);
|
||||
do
|
||||
rm -rf /${file}
|
||||
done
|
||||
fi
|
||||
rm -rf /var/disco/testfs/noop/scratchfs/*
|
||||
rm -rf /var/disco/testfs/real/scratchfs/*
|
||||
|
||||
Reference in New Issue
Block a user