From e44acbebf7a1be2cccda7a912d1f761310d865bc Mon Sep 17 00:00:00 2001 From: Roman Demidov Date: Wed, 31 Aug 2022 12:13:30 +0300 Subject: [PATCH] Fix KylinOS start error (#471) * Fix KylinOS start error * Small changes * Small changes --- run-document-server.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run-document-server.sh b/run-document-server.sh index 83aeb00..f0fbd87 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -1,5 +1,7 @@ #!/bin/bash +umask 0022 + function clean_exit { /usr/bin/documentserver-prepare4shutdown.sh } @@ -593,6 +595,8 @@ else update_welcome_page fi +find /etc/${COMPANY_NAME} -exec chown ds:ds {} \; + #start needed local services for i in ${LOCAL_SERVICES[@]}; do service $i start