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" NAME="$2"
op="$3" op="$3"
PARAMS=$(disco-param get ${HOSTNAME}/users/${op}/${NAME}) set -x
getent ${GETENT} | grep "^${NAME}" 2>&1 | disco-shutup
PARAMS=$(disco-param get ${HOSTNAME}/${GETENT}s/${op}/${NAME})
BLAH=$(getent ${GETENT} | grep "^${NAME}" 2>&1)
RETVAL=$? RETVAL=$?
if [ $RETVAL -eq 0 ] && [ "$op" == "absent" ]; then if [ $RETVAL -eq 0 ] && [ "$op" == "absent" ]; then
${DEL} ${NAME} ${DEL} ${NAME}

View File

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

View File

@@ -130,6 +130,11 @@ function spin() {
if [ "$NOOP" == "" ]; then if [ "$NOOP" == "" ]; then
# Now for the real rsync back home # Now for the real rsync back home
rsync -aWH /var/disco/testfs/real/scratchfs/. / 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 fi
rm -rf /var/disco/testfs/noop/scratchfs/* rm -rf /var/disco/testfs/noop/scratchfs/*
rm -rf /var/disco/testfs/real/scratchfs/* rm -rf /var/disco/testfs/real/scratchfs/*