aboutsummaryrefslogtreecommitdiff
path: root/tools/etc/icpc/restart.sh
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-10 10:35:53 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-10 10:35:53 +0000
commit02b4aacc81613792b0fa618692145dc1e2989e42 (patch)
treeda7e9da7a587e8ffa9032ebf02a1022a315e9305 /tools/etc/icpc/restart.sh
parente1b61094597488dcb3ef166013186b07bf379d76 (diff)
downloadboca-02b4aacc81613792b0fa618692145dc1e2989e42.tar.gz
boca-02b4aacc81613792b0fa618692145dc1e2989e42.zip
removal of old files, preparation for https
Diffstat (limited to 'tools/etc/icpc/restart.sh')
-rwxr-xr-xtools/etc/icpc/restart.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/tools/etc/icpc/restart.sh b/tools/etc/icpc/restart.sh
deleted file mode 100755
index 8c6c98c..0000000
--- a/tools/etc/icpc/restart.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-uid=`id -u`
-if [ "$uid" != "0" ]; then
- echo "Must be root to run this script. Use sudo /bin/bash first"
- exit 1
-fi
-
-apt-get clean
-if [ -f /etc/icpc/postgresql.version ]; then
- . /etc/icpc/postgresql.version
-else
-POSTGRESV=""
-if [ ! -f /etc/init.d/postgresql ]; then
- POSTGRESV="-8.4"
-fi
-fi
-
-pass=\$`echo -n icpc | makepasswd --clearfrom - --crypt-md5 | cut -d'$' -f2-`
-usermod -p "$pass" icpc
-
-rm -f /etc/icpc/.isserver
-rm -f /etc/icpc/.firsttimedone
-rm -f /etc/icpc/bocaserver.sh
-/etc/icpc/cleandisk.sh
-/etc/init.d/apache2 stop
-/etc/init.d/postgresql$POSTGRESV stop
-rm -f /var/log/apache2/*
-rm -f /var/log/postgresql/*
-update-rc.d -f apache2 remove
-update-rc.d -f postgresql$POSTGRESV remove
-