summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-12-20 14:00:56 +0100
committerRamón M. Gómez <ramongomez@us.es>2018-12-20 14:00:56 +0100
commit42c7e5f1065a6f7eb2cdb745028986ca0d1f6d60 (patch)
treeda7edbdf5ae7a4d62d31b163100345036521a701 /installer
parent0433dbedba00856358ba24d2d39579683cfc2ed9 (diff)
#869: `realpath` command is included in `coreutils` package on Ubuntu 18.04
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_update.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index 34ef4b18..3349bbec 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -119,6 +119,8 @@ function autoConfigure()
if [ -f /etc/debian_version ]; then
# Distribución basada en paquetes Deb.
DEPENDENCIES=( curl rsync btrfs-tools procps arp-scan realpath php-curl gettext moreutils jq wakeonlan udpcast shim-signed grub-efi-amd64-signed php-fpm )
+ # Paquete correcto para realpath.
+ [ -z "$(apt-cache pkgnames realpath)" ] && DEPENDENCIES=( ${DEPENDENCIES[@]//realpath/coreutils} )
UPDATEPKGLIST="add-apt-repository -y ppa:ondrej/php; apt-get update"
INSTALLPKGS="apt-get -y install"
DELETEPKGS="apt-get -y purge"