aboutsummaryrefslogtreecommitdiffstats
path: root/.devcontainer/setup.sh
diff options
context:
space:
mode:
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