aboutsummaryrefslogtreecommitdiff
path: root/boca-1.5.1/tools/etc/icpc/doclean.sh
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2013-07-02 05:44:46 +0000
committercassio <cassiopc@gmail.com>2013-07-02 05:44:46 +0000
commita9aa438ea0558eb0044cf1e54a9190ddb41b65e5 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /boca-1.5.1/tools/etc/icpc/doclean.sh
parent94caebadeb66ad7b453d4258a796979cafb758b0 (diff)
downloadboca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.tar.gz
boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.zip
restructuring of boca's git
Diffstat (limited to 'boca-1.5.1/tools/etc/icpc/doclean.sh')
-rwxr-xr-xboca-1.5.1/tools/etc/icpc/doclean.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/boca-1.5.1/tools/etc/icpc/doclean.sh b/boca-1.5.1/tools/etc/icpc/doclean.sh
deleted file mode 100755
index 40b49c1..0000000
--- a/boca-1.5.1/tools/etc/icpc/doclean.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-cd /home
-if [ -f /home/icpc/.cleandisk.sh ]; then
-rm -rf /home/icpc
-find /home -user icpc -delete
-if [ -x /usr/bin/makepasswd ]; then
- pass=`echo -n icpc | /usr/bin/makepasswd --clearfrom - --crypt-md5 | cut -d'$' -f2-`
- pass=\$`echo $pass`
- id -u icpc >/dev/null 2>/dev/null
- if [ $? != 0 ]; then
- useradd -d /home/icpc -k /etc/skel -m -p "$pass" -s /bin/bash -g users icpc
- else
- usermod -d /home/icpc -p "$pass" -s /bin/bash -g users icpc
- fi
-fi
-for i in media mnt var opt tmp usr; do
- find /$i -user icpc -delete
-done
-if [ ! -d /home/icpc ]; then
- rm -rf /home/icpc
- rm -rf /home/skel
- cp -ar /etc/skel/ /home
- mv /home/skel /home/icpc
-fi
-chown -R icpc.users /home/icpc
-chmod -R u+rwx /home/icpc
-fi
-cd - >/dev/null
-exit 0