Removed ple prefix to the user query in topmenu
[unfold.git] / debian / unfold.postinst
1 #!/bin/bash
2 # if this requires a service to be running, add something like this
3 # update-rc.d unfold defaults
4 [ -d /var/unfold ] || mkdir /var/unfold
5 chown -R www-data.www-data /var/unfold
6 chmod -R 700 /var/unfold
7 # upgrading from older packages -- temporary 
8 [ -f /usr/share/unfold/myslice.sqlite3 ] && mv -f /usr/share/unfold/myslice.sqlite3 /var/unfold
9 rm -f /etc/apache2/sites*/myslice.conf
10 # upgrading end
11 /usr/share/unfold/manage.py syncdb
12 /usr/share/unfold/manage.py migrate
13 a2dissite default
14 a2ensite unfold.conf
15 service apache2 restart