25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

make-packages: Fix permissions on RPM systems

RPM resets ownership/permissions of /opt/ejabberd and its subdirectories
on installation.  Therefore, fix those in the "after-install" script.
This commit is contained in:
Holger Weiss 2022-08-21 15:48:28 +02:00
parent 9a8a843724
commit bce429dc44

View File

@ -119,6 +119,8 @@ create_scripts()
fi
chown 'root:$rel_name' '/opt/$rel_name-$rel_vsn/lib/epam-'*'/priv/bin/epam'
chmod '4750' '/opt/$rel_name-$rel_vsn/lib/epam-'*'/priv/bin/epam'
chown -R -h '$rel_name:$rel_name' '/opt/$rel_name'
chmod 'o-rwx' '/opt/$rel_name/'*
EOF
cat >"$dir/after-upgrade" <<-EOF