Browse Source

Merge a3bd285f8e into 9d92f205a9

pull/55652/merge
jrjik 10 hours ago
committed by GitHub
parent
commit
600be177cd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      .devcontainer/Dockerfile
  2. 7
      .devcontainer/setup.sh

5
.devcontainer/Dockerfile

@ -7,7 +7,10 @@ RUN apt-get update -y && \
apt install -y apache2 vim software-properties-common sudo nano gnupg2 wget curl git \
lsb-release ca-certificates apt-transport-https && \
add-apt-repository ppa:ondrej/php -y && \
apt-get update -y
apt-get update -y && \
a2enmod headers rewrite env && \
bash -lc 'printf "\n<Directory /var/www/html>\n AllowOverride All\n Require all granted\n</Directory>\n" >> /etc/apache2/sites-available/000-default.conf' && \
apache2ctl configtest
RUN apt-get install --no-install-recommends -y \
php8.4 \

7
.devcontainer/setup.sh

@ -9,6 +9,13 @@ cd $DIR/
git submodule update --init
# Ensure Apache modules and vhost for Nextcloud
sudo a2enmod headers rewrite env >/dev/null 2>&1 || true
if ! grep -q "<Directory /var/www/html>" /etc/apache2/sites-available/000-default.conf; then
sudo bash -lc 'printf "\n<Directory /var/www/html>\n AllowOverride All\n Require all granted\n</Directory>\n" >> /etc/apache2/sites-available/000-default.conf'
fi
sudo apache2ctl configtest || true
# Codespace config
cp .devcontainer/codespace.config.php config/codespace.config.php

Loading…
Cancel
Save