Ramage;296445 Wrote:
> Thanks - that's what I thought. I'm waiting for the next nightly to try
> again with the apparmor issue.
7.0..1~19242 installed and run without problem; however noted that the
/etc/apparmor.d/usr.bin.mysql now contains 2 versions of the
squeezecenter changes. This is due to the "postinst" script appending
the SC apparmor changes to usr.sbin.mysql each time an update is run.
Code:
--------------------
# If there's an apparmor config, we need to update it to allow mysql to
work properly
if [ -f /etc/apparmor.d/usr.sbin.mysqld ]; then
## Remove the end-bracket so we can input our data into the
file...
sed -e 's/}//' /etc/apparmor.d/usr.sbin.mysqld >
/etc/apparmor.d/usr.sbin.mysqld.squeezecenter.new
echo " # SqueezeCenter Apparmor Changes for MySqld
/var/lib/squeezecenter/cache/ r,
/var/lib/squeezecenter/cache/my.cnf r,
/var/lib/squeezecenter/cache/mysql.startup rw,
/var/lib/squeezecenter/cache/mysql-error-log.txt rw,
/var/lib/squeezecenter/cache/squeezecenter-mysql.pid w,
/var/lib/squeezecenter/cache/squeezecenter-mysql.sock w,
/var/lib/squeezecenter/cache/MySQL/ r,
/var/lib/squeezecenter/cache/MySQL/** rwk,
} " >> /etc/apparmor.d/usr.sbin.mysqld.squeezecenter.new
mv /etc/apparmor.d/usr.sbin.mysqld
/etc/apparmor.d/usr.sbin.mysqld.squeezecenter.orig
mv /etc/apparmor.d/usr.sbin.mysqld.squeezecenter.new
/etc/apparmor.d/usr.sbin.mysqld
/etc/init.d/apparmor restart
echo "\n"
fi
--------------------
The deb "postinst" script needs to test for the presence of the
squeezecenter apparmor changes in usr.sbin.mysql before appending the
changes, and skip if appropriate.
--
Ramage
T5500 1.6GHz, SC 7.0.1-18576 Win Vista, Alien 2.0
P4 2.6GHz, SC 7.0.1-17976 WinXP, Alien 2.0
P2 266MHz, ClarkConnect 4.1, SC 7.0.1-19177, Alien 2.0
AMD64x2 ubuntu 8.04, SC 7.0.1~19177, Alien 2.0
------------------------------------------------------------------------
Ramage's Profile: http://forums.slimdevices.com/member.php?userid=5343
View this thread: http://forums.slimdevices.com/showthread.php?t=46614
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix