summaryrefslogtreecommitdiff
path: root/base-install
diff options
context:
space:
mode:
Diffstat (limited to 'base-install')
-rwxr-xr-xbase-install15
1 files changed, 14 insertions, 1 deletions
diff --git a/base-install b/base-install
index 326a908..7912e5d 100755
--- a/base-install
+++ b/base-install
@@ -21,12 +21,25 @@ echo
echo "Updating index..."
cmd="$WGET -O redland_key.asc $REDLAND_APT_KEY >/dev/null 2>&1" && run_cmd "$cmd" "Download redland apt-key"
-cmd="$APT_KEY add redland_key.asc >/dev/null 2>&1; rm redland_key.asc" && run_cmd "$cmd" "Adding redland apt-key"
+cmd="sudo $APT_KEY add redland_key.asc >/dev/null 2>&1; rm redland_key.asc" && run_cmd "$cmd" "Adding redland apt-key"
if ! cat "/etc/apt/sources.list" | grep "$REDLAND_DEB">/dev/null 2>&1; then
echo "deb $REDLAND_DEB ./" | sudo $TEE -a /etc/apt/sources.list >/dev/null
echo "deb-src $REDLAND_DEB ./" | sudo $TEE -a /etc/apt/sources.list >/dev/null
fi
+#Only for ist nightly test server (3)
+case "`hostname`" in
+"istnightly3" )
+ FTP_DEB="http://ftp.de.debian.org/debian/"
+ if ! cat "/etc/apt/sources.list" | grep "$FTP_DEB">/dev/null 2>&1; then
+ echo "deb $FTP_DEB wheezy main" | sudo $TEE -a /etc/apt/sources.list >/dev/null
+ echo "deb-src $FTP_DEB wheezy main" | sudo $TEE -a /etc/apt/sources.list >/dev/null
+ fi
+ sudo sed -i "s;deb http://http.debian.net/debian wheezy-updates main;#deb http://http.debian.net/debian wheezy-updates main;" /etc/apt/sources.list
+ sudo sed -i "s;deb-src http://http.debian.net/debian wheezy-updates main;#deb-src http://http.debian.net/debian wheezy-updates main;" /etc/apt/sources.list;;
+*) ;;
+esac
+
sudo $APTITUDE update -y >/dev/null 2>&1
sudo $APTITUDE upgrade -y >/dev/null 2>&1