aboutsummaryrefslogtreecommitdiff
path: root/lang/php8/test.sh
blob: 7b2de6ee7679488d1b739ac9b3cdb6e558d63018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

case "$1" in
	php8-cgi)
		php8-cgi -v | grep "$2"
		;;
	php8-cli)
		php8-cli -v | grep "$2"
		;;
	php8-fpm)
		php8-fpm -v | grep "$2"
		;;
	php8-mod-*)
		PHP_MOD="${1#php8-mod-}"
		PHP_MOD="${PHP_MOD//-/_}"

		opkg install php8-cli

		php8-cli -m | grep -i "$PHP_MOD"
		;;
	*)
		;;
esac