Skip to content

Commit c38acc3

Browse files
committed
Check in 1.8.3
1 parent e81535f commit c38acc3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+466
-224
lines changed

CMakeLists.txt

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
cmake_minimum_required(VERSION 3.0)
22
set( CMAKE_EXPORT_COMPILE_COMMANDS ON)
33

4-
Project(openlitespeed)
4+
Project(openlitespeed VERSION 1.8.3)
55
INCLUDE( ${PROJECT_SOURCE_DIR}/CMakeModules/common.cmake)
66
INCLUDE(GNUInstallDirs)
77

8-
set(openlitespeed_MAJOR_VERSION 1)
9-
set(openlitespeed_MINOR_VERSION 8)
10-
set(openlitespeed_PATCH_VERSION 2)
11-
set(openlitespeed_VERSION
12-
${openlitespeed_MAJOR_VERSION}.${openlitespeed_MINOR_VERSION}.${openlitespeed_PATCH_VERSION})
13-
148
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
159
set(CMAKE_SKIP_BUILD_RPATH TRUE)
1610

LSQUICCOMMIT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d3582f34f0b8dcdb64b3d6b0a25d351bc96f8cdf
1+
7686d8fcef284cda07a951ad74a5e90c69a9dfb1

build.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -662,9 +662,14 @@ cd ..
662662

663663
cp build/src/openlitespeed dist/bin/
664664
if [ -e build/support/unmount_ns/unmount_ns ] ; then
665-
cp build/support/unmount_ns/unmount_ns dist/bin/
665+
cp build/support/unmount_ns/unmount_ns dist/lsns/bin/
666666
fi
667667

668+
if [ -e build/support/cmd_ns/cmd_ns ] ; then
669+
cp build/support/cmd_ns/cmd_ns dist/lsns/bin/
670+
fi
671+
672+
668673
cpModuleSoFiles
669674

670675
#Version >= 1.6.0 which has QUIC need to fix for freebsd

configure

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
Generated by GNU Autoconf 2.69 for openlitespeed 1.8.2.
3+
Generated by GNU Autoconf 2.69 for openlitespeed 1.8.3.
44
#
55
# Report bugs to <[email protected]>.
66
#
@@ -590,8 +590,8 @@ MAKEFLAGS=
590590
# Identity of this package.
591591
PACKAGE_NAME='openlitespeed'
592592
PACKAGE_TARNAME='openlitespeed'
593-
PACKAGE_VERSION='1.8.2'
594-
PACKAGE_STRING='openlitespeed 1.8.2'
593+
PACKAGE_VERSION='1.8.3'
594+
PACKAGE_STRING='openlitespeed 1.8.3'
595595
PACKAGE_BUGREPORT='[email protected]'
596596
PACKAGE_URL='http://www.litespeedtech.com/'
597597

@@ -1409,7 +1409,7 @@ if test "$ac_init_help" = "long"; then
14091409
# Omit some internal or obsolete options to make the list less imposing.
14101410
# This message is too long to be a string in the A/UX 3.1 sh.
14111411
cat <<_ACEOF
1412-
\`configure' configures openlitespeed 1.8.2 to adapt to many kinds of systems.
1412+
\`configure' configures openlitespeed 1.8.3 to adapt to many kinds of systems.
14131413

14141414
Usage: $0 [OPTION]... [VAR=VALUE]...
14151415

@@ -1480,7 +1480,7 @@ fi
14801480

14811481
if test -n "$ac_init_help"; then
14821482
case $ac_init_help in
1483-
short | recursive ) echo "Configuration of openlitespeed 1.8.2:";;
1483+
short | recursive ) echo "Configuration of openlitespeed 1.8.3:";;
14841484
esac
14851485
cat <<\_ACEOF
14861486

@@ -1641,7 +1641,7 @@ fi
16411641
test -n "$ac_init_help" && exit $ac_status
16421642
if $ac_init_version; then
16431643
cat <<\_ACEOF
1644-
openlitespeed configure 1.8.2
1644+
openlitespeed configure 1.8.3
16451645
generated by GNU Autoconf 2.69
16461646

16471647
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2315,7 +2315,7 @@ cat >config.log <<_ACEOF
23152315
This file contains any messages produced by compilers while
23162316
running configure, to aid debugging if configure makes a mistake.
23172317

2318-
It was created by openlitespeed $as_me 1.8.2, which was
2318+
It was created by openlitespeed $as_me 1.8.3, which was
23192319
generated by GNU Autoconf 2.69. Invocation command line was
23202320

23212321
$ $0 $@
@@ -3181,7 +3181,7 @@ fi
31813181

31823182
# Define the identity of the package.
31833183
PACKAGE='openlitespeed'
3184-
VERSION='1.8.2'
3184+
VERSION='1.8.3'
31853185

31863186

31873187
# Some tools Automake needs.
@@ -19637,7 +19637,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1963719637
# report actual input values of CONFIG_FILES etc. instead of their
1963819638
# values after options handling.
1963919639
ac_log="
19640-
This file was extended by openlitespeed $as_me 1.8.2, which was
19640+
This file was extended by openlitespeed $as_me 1.8.3, which was
1964119641
generated by GNU Autoconf 2.69. Invocation command line was
1964219642

1964319643
CONFIG_FILES = $CONFIG_FILES
@@ -19704,7 +19704,7 @@ _ACEOF
1970419704
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1970519705
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1970619706
ac_cs_version="\\
19707-
openlitespeed config.status 1.8.2
19707+
openlitespeed config.status 1.8.3
1970819708
configured by $0, generated by GNU Autoconf 2.69,
1970919709
with options \\"\$ac_cs_config\\"
1971019710

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ m4_include(ax_check_libudns.m4)
77
m4_include(ax_check_ip2location.m4)
88

99
dnl Process this file with autoconf to produce a configure script.
10-
AC_INIT([openlitespeed],[1.8.2],[[email protected]],[openlitespeed],[http://www.litespeedtech.com/])
10+
AC_INIT([openlitespeed],[1.8.3],[[email protected]],[openlitespeed],[http://www.litespeedtech.com/])
1111
AM_INIT_AUTOMAKE([1.0 foreign no-define subdir-objects])
1212

1313
AC_CONFIG_HEADERS(src/config.h:src/config.h.in)

dist/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.2
1+
1.8.3

dist/admin/misc/admpass.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ done
5555

5656
# generate password file
5757

58-
ENCRYPT_PASS=`$CUR_DIR/../fcgi-bin/admin_php -q $CUR_DIR/htpasswd.php $PASS_ONE`
58+
ENCRYPT_PASS=`$CUR_DIR/../fcgi-bin/admin_php -q $CUR_DIR/htpasswd.php "$PASS_ONE"`
5959
echo "$ADMIN_USER:$ENCRYPT_PASS" > $CUR_DIR/../conf/htpasswd
6060
if [ $? -eq 0 ]; then
6161
echo "Administrator's username/password is updated successfully!"

dist/conf/mime.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ java = text/plain
4646
jar = application/java-archive
4747
jnlp = application/x-java-jnlp-file
4848
jpeg, jpe, jpg = image/jpeg
49-
js = text/javascript
49+
mjs, js = text/javascript
5050
js2 = application/javascript
5151
js3 = application/x-javascript
5252
json = application/json

dist/functions.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,7 @@ installation()
10181018

10191019
util_ccpfile "$SDIR_OWN" $EXEC_MOD fcgi-bin/lsperld.fpl fcgi-bin/RackRunner.rb fcgi-bin/lsnode.js
10201020
util_cpfile "$SDIR_OWN" $EXEC_MOD fcgi-bin/RailsRunner.rb fcgi-bin/RailsRunner.rb.2.3
1021+
util_cpfile "$SDIR_OWN" $EXEC_MOD lsns/bin/common.py lsns/bin/lscgctl lsns/bin/lscgstats lsns/bin/lspkgctl lsns/bin/lsnsctl lsns/bin/unmount_ns lsns/bin/cmd_ns lsns/bin/lssetup
10211022

10221023
pkill _recaptcha
10231024
util_cpfile "$SDIR_OWN" $EXEC_MOD lsrecaptcha/_recaptcha lsrecaptcha/_recaptcha.shtml

dist/lsns/bin/common.py

+17-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
from stat import *
33
from subprocess import PIPE
44

5-
VERSION='0.0.1'
5+
VERSION='0.0.3'
6+
# 0.0.2: Updated for package commands
7+
# 0.0.3: Updated for limited CloudLinux support
68

79
OPTION_CPU=0
810
OPTION_IO=1
@@ -14,6 +16,7 @@
1416
this.logged = None
1517
this.serverRoot = '/usr/local/lsws'
1618
this.min_uid = 0
19+
this.cl = False
1720

1821
def init_logging():
1922
logging.basicConfig(format="%(asctime)s.%(msecs)03d" + " [%(levelname)s] %(message)s",
@@ -129,10 +132,22 @@ def pkg_to_filename(pkg):
129132
os.mkdir(get_pkg_dir(), mode=0o700)
130133
return get_pkg_dir() + '/%s.conf' % pkg
131134

135+
def get_package_size_file():
136+
return server_root() + '/lsns/conf/redis_package_size.conf'
137+
132138
def ls_ok():
133-
if os.access(container_file(), 0) == 0:
139+
if not os.access(container_file(), os.F_OK):
134140
fatal_error("You must configure LiteSpeed for LiteSpeed Containers")
135141

142+
def ls_cl_ok():
143+
if os.access('/etc/cloudlinux-release', os.F_OK):
144+
this.cl = True
145+
return
146+
ls_ok()
147+
148+
def is_cl():
149+
return this.cl
150+
136151
def touch_restart_external(file, desc):
137152
logging.debug("restart_external %s by touch: %s" % (desc, file))
138153
result = subprocess.run(['touch', file], stdout=PIPE, stderr=PIPE)

0 commit comments

Comments
 (0)