mdserver-web/plugins/php-apt/versions/lib.sh

37 lines
898 B
Bash
Raw Permalink Normal View History

2022-07-07 11:37:57 -04:00
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
curPath=`pwd`
rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
version=$1
2022-07-09 13:13:34 -04:00
if [ "$version" == '5.6' ];then
echo '20131226'
elif [[ "$version" == '7.0' ]]; then
echo '20151012'
elif [[ "$version" == '7.1' ]]; then
echo '20160303'
elif [[ "$version" == '7.2' ]]; then
echo '20170718'
elif [[ "$version" == '7.3' ]]; then
echo '20180731'
elif [[ "$version" == '7.4' ]]; then
echo '20190902'
elif [[ "$version" == '8.0' ]]; then
echo '20200930'
elif [[ "$version" == '8.1' ]]; then
echo '20210902'
2024-06-11 00:43:54 -04:00
elif [[ "$version" == '8.2' ]]; then
echo '20220829'
elif [[ "$version" == '8.3' ]]; then
echo '20230831'
2024-12-01 02:04:12 -05:00
elif [[ "$version" == '8.4' ]]; then
echo '20240924'
2026-01-24 07:27:18 -05:00
elif [[ "$version" == '8.5' ]]; then
echo '20250925'
2022-07-07 11:37:57 -04:00
fi