From 305bbf772ac81f0e5c4086ce7ed970ff86136e43 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Thu, 21 Apr 2016 11:39:28 +0000 Subject: [PATCH] SSDM-3512 : Better ELN backup SVN: 36255 --- installation/resource/installer/bin/backup-installation.sh | 6 +++--- .../resource/installer/bin/restore-config-from-backup.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/installation/resource/installer/bin/backup-installation.sh b/installation/resource/installer/bin/backup-installation.sh index e3c103293e7..9441d8aeab8 100755 --- a/installation/resource/installer/bin/backup-installation.sh +++ b/installation/resource/installer/bin/backup-installation.sh @@ -56,9 +56,9 @@ if [ -d $ROOT_DIR/beewm ]; then mv $ROOT_DIR/beewm/bee-workflowmanager/etc $BACKUP_DIR/beewm fi -if [ -d $ROOT_DIR/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc ]; then - echo "mv $ROOT_DIR/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc $BACKUP_DIR/eln-lims" - mv $ROOT_DIR/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc $BACKUP_DIR/eln-lims +if [ -d $ROOT_DIR/core-plugins/eln-lims ]; then + echo "mv $ROOT_DIR/core-plugins/eln-lims $BACKUP_DIR/eln-lims" + mv $ROOT_DIR/core-plugins/eln-lims $BACKUP_DIR/eln-lims fi echo "DONE" diff --git a/installation/resource/installer/bin/restore-config-from-backup.sh b/installation/resource/installer/bin/restore-config-from-backup.sh index cf95f087b35..ec524996a89 100755 --- a/installation/resource/installer/bin/restore-config-from-backup.sh +++ b/installation/resource/installer/bin/restore-config-from-backup.sh @@ -66,7 +66,7 @@ fi # -- ELN-LIMS if [ -d $ROOT/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc ]; then - if [ -d $CONF/../eln-lims ]; then - cp $CONF/../eln-lims/* $ROOT/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/ + if [ -d $CONF/../eln-lims/1/as/webapps/eln-lims/html/etc ]; then + cp $CONF/../eln-lims/1/as/webapps/eln-lims/html/etc/* $ROOT/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/ fi fi \ No newline at end of file -- GitLab