Commit 3902b5fe authored by Richard Hector's avatar Richard Hector

bugfixes: postinst, postrm, dependencies

parent da503114
mahara-scripts (0.3) unstable; urgency=low
* fix bug (postinst created the wrong log dir, postrm deleted it)
* add dependency on apache2
-- Richard Hector <richard@catalyst.net.nz> Wed, 24 Nov 2010 16:29:17 +1300
mahara-scripts (0.2) unstable; urgency=low
* Initial release.
......
......@@ -7,7 +7,7 @@ Standards-Version: 3.9.1
Package: custom-site-mahara-langpacks
Architecture: all
Depends: php5-cli, perl, bash, debconf, git-core
Depends: apache2, php5-cli, perl, bash, debconf, git-core
Description: Mahara langpack repository scripts
Scripts to download mahara langpacks from gitorious, clean them up, and
make them available for HTTP download.
......@@ -25,8 +25,8 @@ case "$1" in
if [ ! -d /var/lib/mahara-langpacks ]; then
mkdir /var/lib/mahara-langpacks
fi
if [ ! -d /var/log/mahara-langpacks ]; then
mkdir /var/log/mahara-langpacks
if [ ! -d /var/log/apache2/mahara-langpacks ]; then
mkdir /var/log/apache2/mahara-langpacks
fi
echo "DATA=/var/lib/mahara-langpacks" > /etc/mahara-langpacks.conf
......
......@@ -21,7 +21,7 @@ case "$1" in
rm -f /etc/mahara-langpacks.conf
rm -rf /var/lib/mahara-langpacks
rm -rf /var/www/mahara-langpacks
rm -rf /var/log/mahara-langpacks
rm -rf /var/log/apache2/mahara-langpacks
rm -f /etc/apache2/sites-available/mahara-langpacks.conf
;;
......
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