Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 6294ad8

Browse files
1 parent e4c7920 commit 6294ad8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

sormas-base/setup/server-update.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ UPDATE_LOG_PATH=$DOMAIN_PATH/$DOMAIN_NAME/update-logs
4242
UPDATE_LOG_FILE_NAME=server_update_`date +"%Y-%m-%d_%H-%M-%S"`.txt
4343
CUSTOM_DIR=/opt/sormas/custom
4444
ABOUT_FILES_DIR=$CUSTOM_DIR/aboutfiles
45+
DOCUMENTS_DIR=/opt/sormas/documents
4546
USER_NAME=payara
4647
CONTINUOUS_DELIVERY=no
4748

@@ -107,6 +108,12 @@ if [ ! -d ABOUT_FILES_DIR ]; then
107108
setfacl -m u:postgres:rwx ${ABOUT_FILES_DIR}
108109
fi
109110

111+
if [ ! -d $DOCUMENTS_DIR ]; then
112+
mkdir -p ${DOCUMENTS_DIR}
113+
setfacl -m u:${USER_NAME}:rwx ${DOCUMENTS_DIR}
114+
setfacl -m u:postgres:rwx ${DOCUMENTS_DIR}
115+
fi
116+
110117
# Create a file to log errors and messages not produced by this script during the update process
111118
if [ ! -d $UPDATE_LOG_PATH ]; then
112119
mkdir $UPDATE_LOG_PATH 2>/dev/null

0 commit comments

Comments
 (0)