Commit 8525944054e2c530e972b6f084fd0a64f5b846a2

Authored by Antonio Terceiro
1 parent 424988e4

noosfero-apache: migrate to jessie

debian/noosfero-apache.postinst
... ... @@ -17,7 +17,7 @@ if which update-noosfero-apache >/dev/null; then
17 17 update-noosfero-apache
18 18  
19 19 if [ "$enable_apache_site" = 'true' ]; then
20   - a2ensite noosfero
  20 + a2ensite noosfero.conf
21 21 invoke-rc.d apache2 reload
22 22 fi
23 23 fi
... ...
debian/update-noosfero-apache
... ... @@ -6,7 +6,14 @@ set -e
6 6 # installed
7 7 if test -x /usr/share/noosfero/script/apacheconf; then
8 8  
9   - apache_site='/etc/apache2/sites-available/noosfero'
  9 + old_apache_site='/etc/apache2/sites-available/noosfero'
  10 + apache_site='/etc/apache2/sites-available/noosfero.conf'
  11 +
  12 + # migrate from apache 2.2 to 2.4+
  13 + if [ ! -f "$apache_site" -a -f "$old_apache_site" ]; then
  14 + mv "$old_apache_site" "$apache_site"
  15 + fi
  16 +
10 17 if ! test -e "$apache_site"; then
11 18 echo "Generating apache virtual host ..."
12 19 cd /usr/share/noosfero && su noosfero -c "RAILS_ENV=production ./script/apacheconf virtualhosts" > "$apache_site"
... ...