diff options
| author | cassio <cassiopc@gmail.com> | 2013-07-02 05:44:46 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2013-07-02 05:44:46 +0000 |
| commit | a9aa438ea0558eb0044cf1e54a9190ddb41b65e5 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /boca-1.5.1/tools/etc/icpc/restart.sh | |
| parent | 94caebadeb66ad7b453d4258a796979cafb758b0 (diff) | |
| download | boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.tar.gz boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.zip | |
restructuring of boca's git
Diffstat (limited to 'boca-1.5.1/tools/etc/icpc/restart.sh')
| -rwxr-xr-x | boca-1.5.1/tools/etc/icpc/restart.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/boca-1.5.1/tools/etc/icpc/restart.sh b/boca-1.5.1/tools/etc/icpc/restart.sh deleted file mode 100755 index 8c6c98c..0000000 --- a/boca-1.5.1/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 - |