summarylogtreecommitdiffstats
path: root/phpdox.install
blob: 597ae44647d81f4f115494ba4ba19a9a4a0ca054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  if ! php -i | grep 'iconv support => enabled' >/dev/null 2>&1; then
      echo -e "Warning: iconv.so must be loaded in your php.ini"
      echo -e "You may use  \"sed -i 's/;extension=iconv.so/extension=iconv.so/g' /etc/php/php.ini\" to change your configuration"
  fi
  if ! php -i | grep 'libxslt Version =>' >/dev/null 2>&1; then
      echo -e "Warning: xsl.so must be loaded in your php.ini"
      echo -e "You may use \"sed -i 's/;extension=xsl.so/extension=xsl.so/g' /etc/php/php.ini\" to change your configuration"
  fi
}

post_upgrade() {
  post_install
}