From 9800815d0aa7a8837f14b571ba06e99f84727e43 Mon Sep 17 00:00:00 2001 From: Antonio Calanducci Date: Tue, 7 Nov 2023 11:06:16 +0100 Subject: [PATCH] fix mv command --- src/gcube-start-container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcube-start-container.sh b/src/gcube-start-container.sh index 63e817b..a177692 100644 --- a/src/gcube-start-container.sh +++ b/src/gcube-start-container.sh @@ -8,7 +8,7 @@ if [ -n "$EXIST_HOME" ]; then echo "eXist data should be already in place on NFS" elif [ -d "$EXIST_HOME/webapp/WEB-INF/data" ] ; then echo "First run: set up our directory structure on the NFS mountpoint" - mkdir -p /gcube-data/{db,backup} && mv $EXIST_HOME/webapp/WEB-INF/{data,logs,attachments} /gcube-data/db + mkdir -p /gcube-data/{db,backup} && mv $EXIST_HOME/webapp/WEB-INF/{data,logs,attachments} /gcube-data/db/ if [ $? -eq 0 ]; then for dir in {data,logs,attachments}; do ln -s /gcube-data/db/${dir} $EXIST_HOME/webapp/WEB-INF/${dir}