diff options
author | Robin Windey <ro.windey@gmail.com> | 2023-03-31 06:40:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 13:53:05 +0000 |
commit | dfbd1fbe79fb8201257a6c52352042586100e41e (patch) | |
tree | c3460aa15b45bea38771bb8e282cf24645991c44 /.devcontainer/setup.sh | |
parent | a32e8db7031bbb3e183afdf8cabc9b16910dec86 (diff) | |
download | nextcloud-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.sh | 6 |
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 |