Navigation Menu

Skip to content

Commit

Permalink
improve variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 29, 2011
1 parent d1fe8ce commit f13946d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions debian/mysql-server-groonga.postinst
Expand Up @@ -29,10 +29,10 @@ mysql_apparmor_profile=/etc/apparmor.d/${mysql_apparmor_profile_name}
mysql_local_apparmor_profile=/etc/apparmor.d/local/${mysql_apparmor_profile_name}
if test -f "${mysql_local_apparmor_profile}"; then
apparmor_profile_name=mysql-server-groonga
include_ha_groonga="#include <abstractions/${apparmor_profile_name}>"
if ! grep -q "${include_ha_groonga}" "${mysql_local_apparmor_profile}"; then
include_profile="#include <abstractions/${apparmor_profile_name}>"
if ! grep -q "${include_profile}" "${mysql_local_apparmor_profile}"; then
echo >> "${mysql_local_apparmor_profile}"
echo "${include_ha_groonga}" >> "${mysql_local_apparmor_profile}"
echo "${include_profile}" >> "${mysql_local_apparmor_profile}"
fi
local_apparmor_profile=/etc/apparmor.d/local/${apparmor_profile_name}
if ! test -e "$local_apparmor_profile"; then
Expand Down

0 comments on commit f13946d

Please sign in to comment.