linux - set /opt/bunkerweb permissions to 755
This commit is contained in:
parent
17801caebd
commit
8e15e2a400
|
@ -5,7 +5,7 @@
|
|||
"autoconf",
|
||||
"linux"
|
||||
],
|
||||
"timeout": 6000,
|
||||
"timeout": 60,
|
||||
"tests": [
|
||||
{
|
||||
"type": "string",
|
||||
|
|
|
@ -22,7 +22,8 @@ RUN dnf install -y python39-pip brotli brotli-devel gperftools-devel perl libxsl
|
|||
chmod +x /tmp/bunkerweb/deps/install.sh && \
|
||||
bash /tmp/bunkerweb/deps/install.sh && \
|
||||
mkdir /opt/bunkerweb/deps/python && \
|
||||
pip3.9 install --no-cache-dir --require-hashes --target /opt/bunkerweb/deps/python -r /tmp/bunkerweb/deps/requirements.txt
|
||||
pip3.9 install --no-cache-dir --require-hashes --target /opt/bunkerweb/deps/python -r /tmp/bunkerweb/deps/requirements.txt && \
|
||||
chmod 755 /opt/bunkerweb
|
||||
|
||||
# Copy BW files
|
||||
# can't exclude deps from . so we are copying everything by hand
|
||||
|
|
|
@ -26,7 +26,8 @@ RUN apt update && \
|
|||
chmod +x /tmp/bunkerweb/deps/install.sh && \
|
||||
bash /tmp/bunkerweb/deps/install.sh && \
|
||||
mkdir /opt/bunkerweb/deps/python && \
|
||||
pip install --no-cache-dir --require-hashes --target /opt/bunkerweb/deps/python -r /tmp/bunkerweb/deps/requirements.txt
|
||||
pip install --no-cache-dir --require-hashes --target /opt/bunkerweb/deps/python -r /tmp/bunkerweb/deps/requirements.txt && \
|
||||
chmod 755 /opt/bunkerweb
|
||||
|
||||
# Copy BW files
|
||||
# can't exclude deps from . so we are copying everything by hand
|
||||
|
|
|
@ -21,7 +21,8 @@ RUN dnf install -y python3-pip brotli brotli-devel gperftools-devel perl libxslt
|
|||
chmod +x /tmp/bunkerweb/deps/install.sh && \
|
||||
bash /tmp/bunkerweb/deps/install.sh && \
|
||||
mkdir /opt/bunkerweb/deps/python && \
|
||||
pip install --no-cache-dir --require-hashes --target /opt/bunkerweb/deps/python -r /tmp/bunkerweb/deps/requirements.txt
|
||||
pip install --no-cache-dir --require-hashes --target /opt/bunkerweb/deps/python -r /tmp/bunkerweb/deps/requirements.txt && \
|
||||
chmod 755 /opt/bunkerweb
|
||||
|
||||
# Copy BW files
|
||||
# can't exclude deps from . so we are copying everything by hand
|
||||
|
|
|
@ -57,7 +57,8 @@ RUN cp /opt/bunkerweb/helpers/bwcli /usr/local/bin && \
|
|||
chmod 770 /opt/bunkerweb/cache /opt/bunkerweb/tmp && \
|
||||
chmod 750 /opt/bunkerweb/gen/main.py /opt/bunkerweb/job/main.py /opt/bunkerweb/cli/main.py /opt/bunkerweb/helpers/*.sh /opt/bunkerweb/ui/main.py /opt/bunkerweb/www && \
|
||||
find /opt/bunkerweb/core/*/jobs/* -type f -exec chmod 750 {} \; && \
|
||||
pip install --no-cache-dir --target /opt/bunkerweb/deps/python -r /opt/bunkerweb/ui/requirements.txt
|
||||
pip install --no-cache-dir --target /opt/bunkerweb/deps/python -r /opt/bunkerweb/ui/requirements.txt && \
|
||||
chmod 755 /opt/bunkerweb
|
||||
|
||||
# Copy Linux files
|
||||
COPY linux/variables.env /opt/bunkerweb/variables.env
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
error_log = /tmp/php-fpm.error.log
|
||||
log_level = debug
|
||||
[www]
|
||||
user = www-data
|
||||
group = www-data
|
||||
|
@ -11,9 +9,4 @@ pm = dynamic
|
|||
pm.max_children = 5
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
catch_workers_output = yes
|
||||
php_flag[display_errors] = on
|
||||
php_admin_value[error_log] = /tmp/php-fpm.log
|
||||
php_admin_flag[log_errors] = on
|
||||
access.log = /tmp/php-fpm.access.log
|
||||
pm.max_spare_servers = 3
|
|
@ -1,5 +1,3 @@
|
|||
error_log = /tmp/php-fpm.error.log
|
||||
log_level = debug
|
||||
[www]
|
||||
user = apache
|
||||
group = apache
|
||||
|
@ -11,9 +9,4 @@ pm = dynamic
|
|||
pm.max_children = 5
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
catch_workers_output = yes
|
||||
php_flag[display_errors] = on
|
||||
php_admin_value[error_log] = /tmp/php-fpm.log
|
||||
php_admin_flag[log_errors] = on
|
||||
access.log = /tmp/php-fpm.access.log
|
||||
pm.max_spare_servers = 3
|
Loading…
Reference in New Issue