summaryrefslogtreecommitdiff
path: root/base-install.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-04-01 15:37:43 +0200
committerAndreas Maunz <andreas@maunz.de>2011-04-01 15:37:43 +0200
commit7dacb96c5c4c46f8fd0c76bd26e5d37319bb5eb1 (patch)
treef271b93c98e0c5193911197f90decc505a18c28c /base-install.sh
parentb69506cc0d7b3b2336444b6458cde7507388a8ca (diff)
all
Diffstat (limited to 'base-install.sh')
-rwxr-xr-xbase-install.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/base-install.sh b/base-install.sh
index f3ed3e8..ac200c6 100755
--- a/base-install.sh
+++ b/base-install.sh
@@ -5,6 +5,10 @@
#
# Your installed packages are safe and will not be updated.
# A Java configuration is created and included in your '~.bashrc'.
+
+source "`pwd`/utils.sh"
+DIR="`pwd`"
+
if [ "$(id -u)" = "0" ]; then
echo "This script must not be run as root" 1>&2
exit 1
@@ -20,8 +24,6 @@ if [ ! -e "$APTITUDE" ]; then
exit 1
fi
-# Dest
-source ./utils.sh
# Pkgs
packs="lsb-release binutils gcc g++ gfortran wget hostname pwgen git-core raptor-utils r-base sun-java6-jdk libssl-dev zlib1g-dev libreadline-dev libmysqlclient-dev libcurl4-openssl-dev libxml2-dev libxslt1-dev libgsl0-dev sun-java6-jdk"
@@ -90,3 +92,5 @@ if [ ! -f $JAVA_CONF ]; then
fi
fi
+cd "$DIR"
+