Skip to content

Commit 61cfeaf

Browse files
authored
Remove permissions check from RavenDB container startup script (#4567)
1 parent 129d5c6 commit 61cfeaf

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/ServiceControl.RavenDB/sc-container-startup.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,7 @@
33
LEGACY_PATH="/opt/RavenDB/Server/RavenData"
44

55
if [[ -d "$LEGACY_PATH" ]]; then
6-
echo "ERROR: RavenDB data is being mounted to the wrong location. It should be mounted to $RAVEN_DataDir. Refer to the article 'Upgrade ServiceControl from Version 5 to Version 6' in the documentation for more details about the steps that must be taken to update ServiceControl to this version."
7-
exit 1
8-
fi
9-
10-
chmod -R u+rwX $RAVEN_DataDir 2> /dev/null
11-
12-
if [[ $? -ne 0 ]]; then
13-
echo "ERROR: RavenDB data permissions are not correct. The owner and group should be set to ID 999. Refer to the article 'Upgrade ServiceControl from Version 5 to Version 6' in the documentation for more details about the steps that must be taken to update ServiceControl to this version."
6+
echo "ERROR: RavenDB data is being mounted to the wrong location. It should be mounted to $RAVEN_DataDir. The owner and group needs to be set to ID 999. Refer to the article 'Upgrade ServiceControl from Version 5 to Version 6' in the documentation for more details about the steps that must be taken to update ServiceControl to this version."
147
exit 1
158
fi
169

0 commit comments

Comments
 (0)