summarylogtreecommitdiffstats
path: root/php-box.install
blob: 30be7f3f554ed3102fd32405e4ce750293db6203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
  echo
  echo "php-box is installed as executable 'box'."
  if ! /usr/bin/php -i | grep 'Phar-based phar archives => enabled' >/dev/null; then
    echo
    echo "[WARNING] the Phar extension of php must be enabled."
    echo "[WARNING] check if the line extension=phar.so is commented out in your php.ini"
  fi
  if ! /usr/bin/php -i | grep 'sodium support => enabled' >/dev/null; then
    echo
    echo "[WARNING] the Sodium extension of php must be enabled."
    echo "[WARNING] check if the line extension=sodium.so is commented out in your php.ini"
  fi
}

post_upgrade() {
    post_install
}