From b6fd4067a02f7ad76011c12fd75cff9af5f4127a Mon Sep 17 00:00:00 2001 From: ramon Date: Mon, 6 Feb 2017 18:02:31 +0000 Subject: #730 #739: Actualizador y entorno Vagrant de pruebas preparados para Ubuntu 16.04 git-svn-id: https://opengnsys.es/svn/branches/version1.1@5174 a21b9725-9963-47de-94b9-378ad31fedc9 --- installer/opengnsys_update.sh | 5 +++-- installer/vagrant/Vagrantfile-devel-vbox | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index fc1661b1..b2f7e00e 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -328,9 +328,10 @@ function installDependencies() if [ $# = 0 ]; then echoAndLog "${FUNCNAME}(): no deps needed." else + PHP5VERSION=$(apt-cache pkgnames php5 2>/dev/null | sort | head -1) while [ $# -gt 0 ]; do - package="$1" - eval $CHECKPKG || INSTALLDEPS="$INSTALLDEPS $1" + package="${1/php5/$PHP5VERSION}" + eval $CHECKPKG || INSTALLDEPS="$INSTALLDEPS $package" shift done if [ -n "$INSTALLDEPS" ]; then diff --git a/installer/vagrant/Vagrantfile-devel-vbox b/installer/vagrant/Vagrantfile-devel-vbox index abb038df..fe971712 100644 --- a/installer/vagrant/Vagrantfile-devel-vbox +++ b/installer/vagrant/Vagrantfile-devel-vbox @@ -31,7 +31,7 @@ echo "/dev/sdb1 /opt/opengnsys/images ext4 defaults 0 0" >> /etc/fstab mount -a # Install OpenGnsys and change server address. wget -q http://opengnsys.es/svn/branches/version1.1/installer/opengnsys_installer.sh -O - | bash -echo y | sudo /opt/opengnsys/bin/setserveraddr eth1 +echo y | sudo /opt/opengnsys/bin/setserveraddr enp0s8 # Insert DHCP data. for ((i=#{NCLIENTS}; i>0; i--)); do sed -i "/^}$/ i host ogClient0${i} { hardware ethernet #{MACPREFIX}0${i}; fixed-address #{NETPREFIX}1${i}; }" /etc/dhcp/dhcpd.conf @@ -61,8 +61,8 @@ EOT MODELSCRIPT = <