mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +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:
parent
9a8a843724
commit
bce429dc44
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user