summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-04-02 16:02:22 +0000
committerramon <ramongomez@us.es>2016-04-02 16:02:22 +0000
commit063e2233fcac132939887b2de3e1f3f11f09ca71 (patch)
treef84d8649ce17957f719c2fa1d08d4246c5843f3b
parentcc2b3c20e8263422c705ba01467dabd20cdd9703 (diff)
#739: Corregir erratas en fichero Vagrant para OGAgent: detectar idioma y crear icono para Eclipse.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4859 a21b9725-9963-47de-94b9-378ad31fedc9
-rw-r--r--installer/vagrant/Vagrantfile-ogagent-vbox6
1 files changed, 4 insertions, 2 deletions
diff --git a/installer/vagrant/Vagrantfile-ogagent-vbox b/installer/vagrant/Vagrantfile-ogagent-vbox
index 0b354bb7..37f7e587 100644
--- a/installer/vagrant/Vagrantfile-ogagent-vbox
+++ b/installer/vagrant/Vagrantfile-ogagent-vbox
@@ -14,12 +14,12 @@ SCRIPT = <<EOT
# Set language.
export LANG="#{LANGUAGE}.UTF-8"
echo "LANG=\"$LANG\"" > /etc/default/locale
-echo "LANG=\"$LANG\"" > /etc/environment
+echo "LANG=\"$LANG\"" >> /etc/environment
echo "LANGUAGE=\"$LANG\"" >> /etc/environment
echo "LC_ALL=\"$LANG\"" >> /etc/environment
echo "LC_CTYPE=\"$LANG\"" >> /etc/environment
locale-gen --lang #{LANGUAGE}
-sed -i 's/XKBLAYOUT=.*/XKBLAYOUT="${LANG%_*}"/' /etc/default/keyboard
+sed -i "s/XKBLAYOUT=.*/XKBLAYOUT=\"${LANG%_*}\"/" /etc/default/keyboard
# Update repositories.
add-apt-repository -y ppa:webupd8team/java
add-apt-repository -y ppa:ubuntu-wine
@@ -41,6 +41,7 @@ wget -q http://ftp.fau.de/eclipse/technology/epp/downloads/release/mars/2/eclips
tar -C /opt -xvzf /tmp/eclipse-php-mars-2-linux-gtk-x86_64.tar.gz
# Add Eclipse icon to the desktop.
mkdir -p /home/vagrant/Escritorio
+mkdir -p /home/vagrant/Escritorio
echo "#!/usr/bin/env xdg-open" > /home/vagrant/Escritorio/eclipse.desktop
echo "[Desktop Entry]" >> /home/vagrant/Escritorio/eclipse.desktop
echo "Name=Eclipse" >> /home/vagrant/Escritorio/eclipse.desktop
@@ -48,6 +49,7 @@ echo "Type=Application" >> /home/vagrant/Escritorio/eclipse.desktop
echo "Exec=/opt/eclipse/eclipse" >> /home/vagrant/Escritorio/eclipse.desktop
echo "Icon=/opt/eclipse/icon.xpm" >> /home/vagrant/Escritorio/eclipse.desktop
echo "Terminal=false" >> /home/vagrant/Escritorio/eclipse.desktop
+chown -R vagrant.vagrant /home/vagrant/Escritorio
# Download OGAgent environment installer.
svn export http://opengnsys.es/svn/branches/version1.1-tickets/OGAgent-ticket718/installer/ogagent-devel-installer.sh /home/vagrant
# Instructions.