Skip to content

Commit

Permalink
deleted apached modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabat committed Jun 20, 2024
1 parent 925542a commit 2d7efd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ RUN git clone https://github.com/remicollet/php-rar.git \
&& phpize && ./configure && make && make install \
&& echo extension=rar.so >> /usr/local/etc/php/conf.d/docker-php-ext-rar.ini

# Delete uneeded php extentions
# Delete uneeded extentions
# php
RUN rm -rf /usr/local/etc/php/conf.d/docker-php-ext-ftp.ini
RUN rm -rf /usr/local/etc/php/conf.d/docker-php-ext-pdo_mysql.ini
RUN rm -rf /usr/local/etc/php/conf.d/docker-php-ext-redis.ini
RUN rm -rf /usr/local/etc/php/conf.d/docker-php-ext-ldap.ini
RUN rm -rf /usr/local/etc/php/conf.d/docker-php-ext-gmp.ini
RUN rm -rf /usr/local/etc/php/conf.d/docker-php-ext-sysvsem.ini
RUN rm -rf /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini
# apache
RUN rm -rf /usr/lib/apache2/modules/mod_status.so
RUN rm -rf /usr/lib/apache2/modules/mod_autoindex.so


ENV NEXTCLOUD_UPDATE=1
Expand Down
12 changes: 0 additions & 12 deletions src/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,6 @@ add_sso_config_command() {
fi
}

disable_appache_modules() {
if [ -n "$DISABLE_APPACHE_MODULES" ]; then

for module in $DISABLE_APPACHE_MODULES; do
a2dismod module -f || true
done

apache2ctl restart

fi
}


disable_admin() {
if [ -n "$DISABLE_ADMIN" ]; then
Expand Down

0 comments on commit 2d7efd8

Please sign in to comment.