Skip to content

Commit

Permalink
fix: fixperms.sh: remove spurious and unneeded chowns
Browse files Browse the repository at this point in the history
Refs: IN-816
  • Loading branch information
M0Rf30 committed Dec 17, 2024
1 parent 204d195 commit 2b9bf88
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/libexec/fixperms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ printMsg() {
fi
}

# NOT /opt/zextras/{store,backup,index}
if [ ${extended} = "yes" ]; then
chown -R ${zextras_user}:${zextras_group} /opt/zextras/a* /opt/zextras/[c-hj-ot-z]* /opt/zextras/s[a-su-z]* 2>/dev/null
fi

chown ${root_user}:${root_group} /opt
chmod 755 /opt
chown ${root_user}:${root_group} /opt/zextras
Expand All @@ -83,6 +78,8 @@ chown -R ${root_user}:${root_group} /opt/zextras/common
chmod 755 /opt/zextras/common
chown -R ${root_user}:${zextras_group} /opt/zextras/common/conf
chmod 775 /opt/zextras/common/conf
chown -R ${zextras_user}:${zextras_group} /opt/zextras/data
chown -R ${zextras_user}:${zextras_group} /opt/zextras/zmstat

for i in master.cf master.cf.in bysender bysender.lmdb tag_as_foreign.re tag_as_foreign.re.in tag_as_originating.re tag_as_originating.re.in; do
if [ -f /opt/zextras/common/conf/${i} ]; then
Expand Down Expand Up @@ -267,11 +264,6 @@ if [ -d /opt/zextras ]; then
fi
fi

if [ -d /opt/zextras/docs ]; then
printMsg "Fixing permissions and ownership on /opt/zextras/docs"
chown carbonio-docs-editor: /opt/zextras/docs
fi

if [ -d /opt/zextras/documentation ]; then
chown -R ${zextras_user}:${zextras_group} /opt/zextras/documentation
find /opt/zextras/documentation -type d -exec chmod 755 {} \;
Expand Down

0 comments on commit 2b9bf88

Please sign in to comment.