"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dist/install.sh" between
openlitespeed-1.6.3.src.tgz and openlitespeed-1.6.4.src.tgz

About: OpenLiteSpeed is a high-performance, lightweight HTTP server with optional HTTP/2 support (open sourve version of the commercial LiteSpeed Web Server). Sources.

install.sh  (openlitespeed-1.6.3.src.tgz):install.sh  (openlitespeed-1.6.4.src.tgz)
#!/bin/sh #!/bin/sh
OSNAMEVER=UNKNOWN OSNAMEVER=UNKNOWN
OSNAME= OSNAME=
OSVER= OSVER=
OSTYPE=`getconf LONG_BIT` OSTYPE=`getconf LONG_BIT`
MARIADBCPUARCH= MARIADBCPUARCH=
DLCMD= DLCMD=
LSPHPVER=73
inst_admin_php() inst_admin_php()
{ {
# detect download method # detect download method
OS=`uname -s` OS=`uname -s`
detectdlcmd detectdlcmd
HASADMINPHP=n HASADMINPHP=n
if [ -f "$LSWS_HOME/admin/fcgi-bin/admin_php" ] ; then if [ -f "$LSWS_HOME/admin/fcgi-bin/admin_php" ] ; then
mv "$LSWS_HOME/admin/fcgi-bin/admin_php" "$LSWS_HOME/admin/fcgi-bin/admi n_php.bak" mv "$LSWS_HOME/admin/fcgi-bin/admin_php" "$LSWS_HOME/admin/fcgi-bin/admi n_php.bak"
skipping to change at line 74 skipping to change at line 75
if [ ! -f "$LSWS_HOME/admin/fcgi-bin/admin_php" ] ; then if [ ! -f "$LSWS_HOME/admin/fcgi-bin/admin_php" ] ; then
echo -e "\033[38;5;148mFinal checking found admin_php not exists, instal lation abort.\033[39m" echo -e "\033[38;5;148mFinal checking found admin_php not exists, instal lation abort.\033[39m"
exit 1 exit 1
fi fi
} }
install_lsphp7_centos() install_lsphp7_centos()
{ {
action=install action=install
ND=nd ND=nd
LSPHPVER=73
yum -y $action epel-release yum -y $action epel-release
rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el$OSVER. noarch.rpm rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el$OSVER. noarch.rpm
yum -y $action lsphp$LSPHPVER lsphp$LSPHPVER-common lsphp$LSPHPVER-gd lsphp$ LSPHPVER-process lsphp$LSPHPVER-mbstring lsphp$LSPHPVER-mysql$ND lsphp$LSPHPVER- xml lsphp$LSPHPVER-mcrypt lsphp$LSPHPVER-pdo lsphp$LSPHPVER-imap yum -y $action lsphp$LSPHPVER lsphp$LSPHPVER-common lsphp$LSPHPVER-gd lsphp$ LSPHPVER-process lsphp$LSPHPVER-mbstring lsphp$LSPHPVER-mysql$ND lsphp$LSPHPVER- xml lsphp$LSPHPVER-mcrypt lsphp$LSPHPVER-pdo lsphp$LSPHPVER-imap lsphp$LSPHPVER- json
if [ ! -f "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" ] ; then if [ ! -f "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" ] ; then
action=reinstall action=reinstall
yum -y remove lsphp$LSPHPVER-mysql$ND yum -y remove lsphp$LSPHPVER-mysql$ND
yum -y install lsphp$LSPHPVER-mysql$ND yum -y install lsphp$LSPHPVER-mysql$ND
yum -y $action lsphp$LSPHPVER lsphp$LSPHPVER-common lsphp$LSPHPVER-gd ls php$LSPHPVER-process lsphp$LSPHPVER-mbstring lsphp$LSPHPVER-xml lsphp$LSPHPVER-m crypt lsphp$LSPHPVER-pdo lsphp$LSPHPVER-imap yum -y $action lsphp$LSPHPVER lsphp$LSPHPVER-common lsphp$LSPHPVER-gd ls php$LSPHPVER-process lsphp$LSPHPVER-mbstring lsphp$LSPHPVER-xml lsphp$LSPHPVER-m crypt lsphp$LSPHPVER-pdo lsphp$LSPHPVER-imap lsphp$LSPHPVER-json
fi fi
if [ -f "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" ] ; then if [ -f "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" ] ; then
ln -sf "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" "$LSWS_HOME/fcgi-bin/lsphp7 " ln -sf "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" "$LSWS_HOME/fcgi-bin/lsphp7 "
fi fi
} }
install_lsphp7_debian() install_lsphp7_debian()
{ {
LSPHPVER=73
grep -Fq "http://rpms.litespeedtech.com/debian/" /etc/apt/sources.list.d/ls t_debian_repo.list grep -Fq "http://rpms.litespeedtech.com/debian/" /etc/apt/sources.list.d/ls t_debian_repo.list
if [ $? != 0 ] ; then if [ $? != 0 ] ; then
echo "deb http://rpms.litespeedtech.com/debian/ $OSVER main" > /etc/apt /sources.list.d/lst_debian_repo.list echo "deb http://rpms.litespeedtech.com/debian/ $OSVER main" > /etc/apt /sources.list.d/lst_debian_repo.list
fi fi
wget -O /etc/apt/trusted.gpg.d/lst_debian_repo.gpg http://rpms.litespeedtech .com/debian/lst_debian_repo.gpg wget -O /etc/apt/trusted.gpg.d/lst_debian_repo.gpg http://rpms.litespeedtech .com/debian/lst_debian_repo.gpg
wget -O /etc/apt/trusted.gpg.d/lst_repo.gpg http://rpms.litespeedtech.com/de bian/lst_repo.gpg wget -O /etc/apt/trusted.gpg.d/lst_repo.gpg http://rpms.litespeedtech.com/de bian/lst_repo.gpg
apt-get -y update apt-get -y update
apt-get -y install lsphp$LSPHPVER lsphp$LSPHPVER-mysql lsphp$LSPHPVER-imap l sphp$LSPHPVER-common apt-get -y install lsphp$LSPHPVER lsphp$LSPHPVER-mysql lsphp$LSPHPVER-imap l sphp$LSPHPVER-common lsphp$LSPHPVER-curl lsphp$LSPHPVER-json
if [ ! -f "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" ] ; then if [ ! -f "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" ] ; then
apt-get -y --reinstall install lsphp$LSPHPVER lsphp$LSPHPVER-mysql lsphp $LSPHPVER-imap lsphp$LSPHPVER-common apt-get -y --reinstall install lsphp$LSPHPVER lsphp$LSPHPVER-mysql lsphp $LSPHPVER-imap lsphp$LSPHPVER-common lsphp$LSPHPVER-curl lsphp$LSPHPVER-json
fi fi
if [ -f "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" ] ; then if [ -f "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" ] ; then
ln -sf "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" "$LSWS_HOME/fcgi-bin/lsphp7 " ln -sf "$LSWS_HOME/lsphp$LSPHPVER/bin/lsphp" "$LSWS_HOME/fcgi-bin/lsphp7 "
fi fi
} }
check_os() check_os()
{ {
OSNAMEVER= OSNAMEVER=
 End of changes. 7 change blocks. 
7 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)