diff options
author | Stefan Auditor | 2023-06-12 17:13:55 +0200 |
---|---|---|
committer | Stefan Auditor | 2023-06-12 17:40:02 +0200 |
commit | 8903525f76a317be3c1ee910688fff7f0ede5674 (patch) | |
tree | 0f7d9afc577613bc0e86d13ef664c7cc62161a21 /php-box.install | |
download | aur-8903525f76a317be3c1ee910688fff7f0ede5674.tar.gz |
Add first build
Diffstat (limited to 'php-box.install')
-rw-r--r-- | php-box.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/php-box.install b/php-box.install new file mode 100644 index 000000000000..b37a3801718a --- /dev/null +++ b/php-box.install @@ -0,0 +1,17 @@ +post_install() { + echo + echo "php-box is installed as executable 'php-box'." + if ! /usr/bin/php -i | grep Phar >/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 'phar.readonly.*Off.*' >/dev/null; then + echo + echo "[WARNING] the phar.readonly option of php must be set to 'Off'." + fi +} + +post_upgrade() { + post_install +} |