diff -Nru wims-moodle-4.0/debian/changelog wims-moodle-4.0/debian/changelog --- wims-moodle-4.0/debian/changelog 2014-01-04 21:50:34.000000000 +0000 +++ wims-moodle-4.0/debian/changelog 2014-02-09 15:32:17.000000000 +0000 @@ -1,3 +1,10 @@ +wims-moodle (4.0-11) unstable; urgency=medium + + * removed a few unused lines from d/postinst, and fixed the directory + creation for /var/lib/wims/log/classes/.connections. Closes: #734772 + + -- Georges Khaznadar Mon, 13 Jan 2014 19:05:23 +0100 + wims-moodle (4.0-10) unstable; urgency=medium * Replaced the dependency on moodle by a "Suggests:" clause. While moodle diff -Nru wims-moodle-4.0/debian/postinst wims-moodle-4.0/debian/postinst --- wims-moodle-4.0/debian/postinst 2014-01-04 21:45:31.000000000 +0000 +++ wims-moodle-4.0/debian/postinst 2014-02-09 15:31:20.000000000 +0000 @@ -18,11 +18,6 @@ # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package -####### reading dirroot and dataroot in Moodle's configuration file ####### -d=">dirroot " -dirroot=$(grep $d /etc/moodle/config.php | head -1 | sed "s/.*'\\(.*\\)'.*/\1/") -d=">dataroot " -dataroot=$(grep $d /etc/moodle/config.php | sed "s/.*'\\(.*\\)'.*/\1/") ########################################################################### ## Getting the address for Wims db_get wims-moodle/remoteurl @@ -31,7 +26,7 @@ localwims_path="/var/lib/wims/log/classes/.connections/localwims" create_localwims(){ - mkdir -p $localwims_path + mkdir -p $(dirname $localwims_path) cat < $localwims_path # This is an example of identification file for connection to another # platform. It is used for platform authentification.