aboutsummaryrefslogtreecommitdiffstats
path: root/.devcontainer/setup.sh
diff options
context:
space:
mode:
authorRobin Windey <ro.windey@gmail.com>2023-03-31 06:40:04 +0000
committerGitHub <noreply@github.com>2023-03-31 13:53:05 +0000
commitdfbd1fbe79fb8201257a6c52352042586100e41e (patch)
treec3460aa15b45bea38771bb8e282cf24645991c44 /.devcontainer/setup.sh
parenta32e8db7031bbb3e183afdf8cabc9b16910dec86 (diff)
downloadnextcloud-server-dfbd1fbe79fb8201257a6c52352042586100e41e.tar.gz
nextcloud-server-dfbd1fbe79fb8201257a6c52352042586100e41e.zip
Dedicated DevContainer user + NVM
* Use dedicated DevContainer user to run Apache (ensure file permissions) * Install NVM for node Signed-off-by: GitHub <noreply@github.com>
Diffstat (limited to '.devcontainer/setup.sh')
-rwxr-xr-x.devcontainer/setup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh
index aec20f3b4dc..2b61f3f9190 100755
--- a/.devcontainer/setup.sh
+++ b/.devcontainer/setup.sh
@@ -12,9 +12,9 @@ git config --global --add safe.directory /var/www/html
git config --global --add safe.directory /var/www/html/3rdparty
# Onetime installation setup
-if [[ ! $(sudo -u www-data php occ status) =~ installed:[[:space:]]*true ]]; then
+if [[ ! $(sudo -u ${APACHE_RUN_USER} php occ status) =~ installed:[[:space:]]*true ]]; then
echo "Running NC installation"
- sudo -u www-data php occ maintenance:install \
+ sudo -u ${APACHE_RUN_USER} php occ maintenance:install \
--verbose \
--database=pgsql \
--database-name=postgres \
@@ -26,4 +26,4 @@ if [[ ! $(sudo -u www-data php occ status) =~ installed:[[:space:]]*true ]]; the
--admin-pass admin
fi
-service apache2 restart
+sudo service apache2 restart