Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
49b87e6d
Commit
49b87e6d
authored
Apr 17, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add PHP session settings
parent
ed882911
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
createbytask.int.sh
vz/azbyka/createbytask.int.sh
+3
-0
createbytask.sh
vz/azbyka/createbytask.sh
+9
-9
No files found.
vz/azbyka/createbytask.int.sh
View file @
49b87e6d
...
@@ -178,6 +178,9 @@ tune_php()
...
@@ -178,6 +178,9 @@ tune_php()
[
-n
"
$PHP_max_execution_time
"
]
&&
subst
"s|^max_execution_time =.*|max_execution_time =
$PHP_max_execution_time
|"
$aphp
[
-n
"
$PHP_max_execution_time
"
]
&&
subst
"s|^max_execution_time =.*|max_execution_time =
$PHP_max_execution_time
|"
$aphp
[
-n
"
$PHP_allow_url_fopen
"
]
&&
subst
"s|^allow_url_fopen =.*|allow_url_fopen =
$PHP_allow_url_fopen
|"
$aphp
[
-n
"
$PHP_allow_url_fopen
"
]
&&
subst
"s|^allow_url_fopen =.*|allow_url_fopen =
$PHP_allow_url_fopen
|"
$aphp
[
-n
"
$PHP_disable_functions
"
]
&&
subst
"s|^disable_functions =.*|disable_functions =
$PHP_disable_functions
|"
$aphp
[
-n
"
$PHP_disable_functions
"
]
&&
subst
"s|^disable_functions =.*|disable_functions =
$PHP_disable_functions
|"
$aphp
[
-n
"
$PHP_session_name
"
]
&&
subst
"s|^session.name = .*|session.name =
$PHP_session_name
|"
$aphp
[
-n
"
$PHP_session_cookie_domain
"
]
&&
subst
"s|^session.cookie_domain = .*|session.cookie_domain =
$PHP_session_cookie_domain
|"
$aphp
if
[
-n
"
$PHP_post_max_size
"
]
;
then
if
[
-n
"
$PHP_post_max_size
"
]
;
then
subst
"s|^post_max_size = .*|post_max_size =
$PHP_post_max_size
|"
$aphp
subst
"s|^post_max_size = .*|post_max_size =
$PHP_post_max_size
|"
$aphp
subst
"s|^upload_max_filesize = .*|upload_max_filesize =
$PHP_post_max_size
|"
$aphp
subst
"s|^upload_max_filesize = .*|upload_max_filesize =
$PHP_post_max_size
|"
$aphp
...
...
vz/azbyka/createbytask.sh
View file @
49b87e6d
...
@@ -62,6 +62,7 @@ if [ -z "$AUSER" ] ; then
...
@@ -62,6 +62,7 @@ if [ -z "$AUSER" ] ; then
fi
fi
fi
fi
# TODO:
# Если домен не был явно задан в конфиге, берём из NAME
# Если домен не был явно задан в конфиге, берём из NAME
if
[
-z
"
$ADOMAIN
"
]
;
then
if
[
-z
"
$ADOMAIN
"
]
;
then
ADOMAIN
=
"
$NAME
"
ADOMAIN
=
"
$NAME
"
...
@@ -83,14 +84,13 @@ assure $VEID
...
@@ -83,14 +84,13 @@ assure $VEID
# TODO
# TODO
# links:
# links:
# - memcached
# TODO: do via docker compose
# TODO: do via docker compose
# TODO: user Dockerfile
# TODO: user Dockerfile
if
[
-n
"
$DOCKID
"
]
;
then
if
[
-n
"
$DOCKID
"
]
;
then
mkdir
-p
composers/sites.d/
mkdir
-p
composers/sites.d/
cat
<<
EOF
> composers/sites.d/
$A
USER
.yml
cat
<<
EOF
> composers/sites.d/
$A
CONF
.yml
$A
USER
:
$A
CONF
:
container_name:
$A
USER
container_name:
$A
CONF
restart: always
restart: always
build: dockers/altlinux-p9-apache2-php7
build: dockers/altlinux-p9-apache2-php7
command:
command:
...
@@ -100,17 +100,17 @@ cat <<EOF > composers/sites.d/$AUSER.yml
...
@@ -100,17 +100,17 @@ cat <<EOF > composers/sites.d/$AUSER.yml
-
$HOSTHOME
/
$AUSER
:/home/
$AUSER
-
$HOSTHOME
/
$AUSER
:/home/
$AUSER
EOF
EOF
if
[
-n
"
$DOCKVOLUME
"
]
;
then
if
[
-n
"
$DOCKVOLUME
"
]
;
then
cat
<<
EOF
>> composers/sites.d/
$A
USER
.yml
cat
<<
EOF
>> composers/sites.d/
$A
CONF
.yml
-
$DOCKVOLUME
-
$DOCKVOLUME
EOF
EOF
fi
fi
cat
<<
EOF
>> composers/sites.d/
$A
USER
.yml
cat
<<
EOF
>> composers/sites.d/
$A
CONF
.yml
cap_add:
cap_add:
- SYS_ADMIN
- SYS_ADMIN
extra_hosts:
extra_hosts:
- "sphinx.azbyka:
$SPHINXHOST
"
- "sphinx.azbyka:
$SPHINXHOST
"
- "memcached memcached.azbyka:
$MEMCACHEDHOST
"
- "memcached memcached.azbyka
memcached.
$AUSER
:
$MEMCACHEDHOST
"
- "redis redis.azbyka
:
$MEMCACHED
HOST
"
- "redis redis.azbyka
redis.
$AUSER
:
$REDIS
HOST
"
- "mysql mysql.azbyka mysql.
$AUSER
:
$MYSQLHOST
"
- "mysql mysql.azbyka mysql.
$AUSER
:
$MYSQLHOST
"
- "mariadb mariadb.azbyka mariadb.
$AUSER
:
$MARIADBHOST
"
- "mariadb mariadb.azbyka mariadb.
$AUSER
:
$MARIADBHOST
"
...
@@ -120,7 +120,7 @@ cat <<EOF >> composers/sites.d/$AUSER.yml
...
@@ -120,7 +120,7 @@ cat <<EOF >> composers/sites.d/$AUSER.yml
EOF
EOF
composers/update_compose.sh
composers/update_compose.sh
#cd composers
#cd composers
DOCKID
=
$A
USER
DOCKID
=
$A
CONF
#evz destroy $DOCKID
#evz destroy $DOCKID
docker-compose
-f
composers/docker-compose.yml
-p
$BASENAME
create
$DOCKID
||
fatal
docker-compose
-f
composers/docker-compose.yml
-p
$BASENAME
create
$DOCKID
||
fatal
#cd -
#cd -
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment