aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/postCreateCommand.sh
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-11-16 13:23:51 +0100
committerGravatar GitHub <noreply@github.com> 2022-11-16 13:23:51 +0100
commitc5b741d98fed4b04c1017f0ace3d6b6566ea7bba (patch)
tree67e4859cb8b76d7d067c8e0d71311bb285fe00e3 /.devcontainer/postCreateCommand.sh
parenta0e3fac47e2f0afbb0346da765bf8942c5ad3984 (diff)
Experiment Development Containers / GitHub Codespaces (#4859)
* Experiment Development Containers / GitHub Codespaces https://containers.dev/ https://github.com/features/codespaces * Fix tests
Diffstat (limited to '.devcontainer/postCreateCommand.sh')
-rwxr-xr-x.devcontainer/postCreateCommand.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh
new file mode 100755
index 000000000..f5398efb9
--- /dev/null
+++ b/.devcontainer/postCreateCommand.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+ln -s "$(pwd)" /var/www/FreshRSS
+
+cp ./Docker/*.Apache.conf /etc/apache2/conf.d/
+
+cat <<EOT >./constants.local.php
+<?php
+define('DATA_PATH', '/home/developer/freshrss-data');
+EOT
+
+./Docker/entrypoint.sh
+
+chown -R developer:www-data /home/developer/freshrss-data
+chmod -R g+w /home/developer/freshrss-data
+
+httpd