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
1 changed files with 2 additions and 0 deletions

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