Commit 80999552 authored by Vitaly Lipatov's avatar Vitaly Lipatov

web: restrict settings after package removal

parent ddcd8392
...@@ -78,6 +78,12 @@ if [ -f /etc/%name/settings.ini ] && getent group %webserver_group >/dev/null; t ...@@ -78,6 +78,12 @@ if [ -f /etc/%name/settings.ini ] && getent group %webserver_group >/dev/null; t
chmod 640 /etc/%name/settings.ini chmod 640 /etc/%name/settings.ini
fi fi
%postun web
if [ "$1" = 0 ] && [ -f /etc/%name/settings.ini ]; then
chown root:root /etc/%name/settings.ini
chmod 600 /etc/%name/settings.ini
fi
%prep %prep
%setup %setup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment