summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_import.sh
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2020-01-21 11:25:18 +0100
committerRamón M. Gómez <ramongomez@us.es>2020-01-21 11:25:18 +0100
commitd3cea205c2e6e272ea11e1989791b949c27106de (patch)
treefd0e8409e38e82c8ee1dc9016071a1fa21a58823 /installer/opengnsys_import.sh
parent2edc4cb27ef6d38e397fae835efb5849d73400e5 (diff)
#951: Remove some fake error messages in import script.
Diffstat (limited to 'installer/opengnsys_import.sh')
-rwxr-xr-xinstaller/opengnsys_import.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/installer/opengnsys_import.sh b/installer/opengnsys_import.sh
index 29d279e9..fb627883 100755
--- a/installer/opengnsys_import.sh
+++ b/installer/opengnsys_import.sh
@@ -312,7 +312,7 @@ done
echo " * Guardamos los ficheros PXE de los clientes."
for BOOTLOADER in menu.lst grub; do
if [ -d $TMPDIR/$BOOTLOADER ]; then
- mkdir $OPENGNSYS/tftpboot/$BOOTLOADER-$DATE
+ mkdir -p $OPENGNSYS/tftpboot/$BOOTLOADER-$DATE
mv $OPENGNSYS/tftpboot/$BOOTLOADER/{01-*,templates,examples} $OPENGNSYS/tftpboot/$BOOTLOADER-$DATE 2>/dev/null
cp -r $TMPDIR/$BOOTLOADER/{01-*,templates,examples} $OPENGNSYS/tftpboot/$BOOTLOADER 2>/dev/null
chown -R www-data:www-data $OPENGNSYS/tftpboot/$BOOTLOADER
@@ -343,10 +343,10 @@ cp -r $TMPDIR/menus $OPENGNSYS/www
# Script personalizados
echo " * Guardamos los scripts personalizados."
if ls $OPENGNSYS/client/scripts/*Custom &>/dev/null; then
- mkdir $OPENGNSYS/client/scripts/Custom-$DATE
+ mkdir -p $OPENGNSYS/client/scripts/Custom-$DATE
mv $OPENGNSYS/client/scripts/*Custom $OPENGNSYS/client/scripts/Custom-$DATE
fi
-cp -r $TMPDIR/*Custom $OPENGNSYS/client/scripts
+cp -r $TMPDIR/*Custom $OPENGNSYS/client/scripts &>/dev/null
echo -e "Se ha terminado de importar los datos del backup. \n\nSe han realizado copias de seguridad de los archivos antiguos:"
echo " - /etc/default/opengnsys-$DATE"