Commit 8525944054e2c530e972b6f084fd0a64f5b846a2
1 parent
424988e4
Exists in
master
and in
15 other branches
noosfero-apache: migrate to jessie
Showing
2 changed files
with
9 additions
and
2 deletions
Show diff stats
debian/noosfero-apache.postinst
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" | ... | ... |