Midstream, this may destroy the world

This commit is contained in:
2012-08-23 18:59:44 -04:00
parent e121bc09e1
commit c000ebba48
3 changed files with 11 additions and 3 deletions

View File

@@ -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}

View File

@@ -1 +1,2 @@
disco-linux-ents
entities
groups

View File

@@ -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/*