dirkg
committed
on 20 Oct 06
Fixed package building
openacs-dist/create-package.sh (+3 -1)
1 1 #!/bin/bash
2 2
3 3 # Written by Dirk Gomez (openacs@dirkgomez.de) on 11-Sep-2006
4 4 # License: GPL
5 5
6 6 if [ ! -d debian/debian/var/www/www ]; then
7 7     echo "You need to put a .LRN or OpenACS checkout into debian/debian/var/www/. "
8 8     exit 1
9 9 fi
10 10
11 11 echo "Setting the permissions on the package shell scripts"
12 12 chmod 755 debian/debian/DEBIAN/control debian/debian/DEBIAN/postinst debian/debian/DEBIAN/prerm
13 13 chown -R root:root debian/debian/DEBIAN/control debian/debian/DEBIAN/postinst debian/debian/DEBIAN/prerm
14 14
15 15 echo "Setting OpenACS' ownership to www-data. We may want to set proper permissions here in the future."
16 16 chown -R www-data:www-data debian/debian/var/www
17 17 rm debian/debian/var/www/put-your-distro-here
18 18
19 19 echo "Building the debian package"
  20 pushd debian
20 21 dpkg-deb --build debian
21   mv debian.deb dotlrn-2.2.0-0.deb
  22 mv debian.deb ../dotlrn-2.2.0-0.deb
  23 popd