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
868da69a
Commit
868da69a
authored
May 18, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vz/azbyka: last fixes
parent
8cf55e57
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
2 deletions
+23
-2
base.task.sample
vz/azbyka/base.task.sample
+4
-0
createbytask.int.sh
vz/azbyka/createbytask.int.sh
+11
-1
createbytask.sh
vz/azbyka/createbytask.sh
+3
-1
createbytask_list.sh
vz/azbyka/createbytask_list.sh
+5
-0
No files found.
vz/azbyka/base.task.sample
View file @
868da69a
DOCKID=RUN
DOCKERIMAGE=azbyka-altlinux-p10-apache2-php8.1
# OpenVZ
TEMPLATE=etersoft-p8
...
...
vz/azbyka/createbytask.int.sh
View file @
868da69a
...
...
@@ -242,6 +242,7 @@ EOF
#subst "s|^Listen .*|Listen $PORT|" /etc/httpd2/conf/ports-enabled/http.conf
subst
"s| *
\(
SetEnvIf.*
\)
|
\n\
$APACHEALIAS
\
\n\
<Directory />
\n\
Options FollowSymLinks
$APACHEDIROPTIONS
\n\
AllowOverride FileInfo AuthConfig Indexes
\n\
...
...
@@ -305,7 +306,7 @@ tune_apache2_mediawiki()
local
i
# Note: A2ENMOD/A2DISMOD in tune_apache2
for
i
in
mod_php
7
status remoteip setenvif rewrite session include
;
do
for
i
in
mod_php
8.1
status remoteip setenvif rewrite session include
;
do
docmd a2enmod
$i
done
...
...
@@ -337,6 +338,9 @@ EOF
tune_local_memcached_redis
()
{
# for access from sitebox
subst
's|^bind 127.0.0.1|bind 0.0.0.0|'
/etc/redis/redis.conf
subst
's|^LISTEN="127.0.0.1"|LISTEN="0.0.0.0"|'
/etc/sysconfig/memcached
serv redis on
serv memcached on
...
...
@@ -394,6 +398,12 @@ for i in $PKGPROFILE ; do
tune_local_memcached_redis
tune_monit_apache2
;;
apache2-php8
)
tune_php /etc/php/8.?/apache2-mod_php/php.ini
tune_apache2
tune_local_memcached_redis
tune_monit_apache2
;;
apache2-php7-mediawiki
)
# FIXME:
tune_hosts_host03
...
...
vz/azbyka/createbytask.sh
View file @
868da69a
...
...
@@ -31,7 +31,7 @@ cat <<EOF > composers/sites.d/$ACONF.yml
$ACONF
:
container_name:
$ACONF
restart: always
image:
azbyka-altlinux-p9-apache2-php7.4
image:
$DOCKERIMAGE
command:
- /sbin/systemd
volumes:
...
...
@@ -145,6 +145,8 @@ else
fatal
"Empty apache/
$ACONF
.conf, skipped"
fi
st
ls
-l
/tmp
cat
apache/prepend.php | st
tee
/tmp/prepend.php
>
/dev/null
st
test
-s
/tmp/prepend.php
||
fatal
"Empty prepend.php"
...
...
vz/azbyka/createbytask_list.sh
0 → 100755
View file @
868da69a
#!/bin/sh
for
task
in
vopros bogosluzhenie
;
do
./createbytask.sh
$task
--force
done
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