Index: installers/debian/dotlrn/postinst =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/postinst,v diff -u -N -r1.1 -r1.2 --- installers/debian/dotlrn/postinst 12 Mar 2008 12:29:42 -0000 1.1 +++ installers/debian/dotlrn/postinst 13 Mar 2008 13:22:13 -0000 1.2 @@ -55,7 +55,30 @@ get_config db_stop exec 0<&1 + + # Care about the repository + repository=/var/lib/dotlrn + if [ -d $repository ]; then + # set the owner and change rights accordingly + chown -R www-data:www-data $repository + chmod 0755 $repository + fi + # Care about the log directory + logdir=/var/log/aolserver4/dotlrn + if [ -d $logdir ]; then + # set the owner and change rights accordingly + chown -R www-data:www-data $logdir + chmod 0755 $logdir + fi + + # Care about the app dir + appdir=/usr/share/dotlrn + if [ -d $appdir ]; then + # set the owner and change rights accordingly + chown -R www-data:www-data $appdir + fi + # care about the database creation dbname=dotlrn dbserver=$db_host