Explorar o código

testing new first run

ttreasure hai 7 meses
pai
achega
7957f44850
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      .devcontainer/first-start.sh

+ 3 - 2
.devcontainer/first-start.sh

@@ -2,6 +2,7 @@ if [ ! -f ./.devcontainer/first-start.flag ]; then
     echo "Running first-start commands..." && \
     # Add your one-time commands here
      cd /var/www/html && \
+    chown -R root:www-data /var/www/html
     chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache && \
     find /var/www/html -type f -exec chmod 644 {} \; && \
     find /var/www/html -type d -exec chmod 755 {} \; && \
@@ -10,10 +11,10 @@ if [ ! -f ./.devcontainer/first-start.flag ]; then
     composer install && \
     php artisan migrate --force && \
     php artisan db:seed && \
-    chown -R www-data:www-data /var/www/html
+    chown -R root:www-data /var/www/html
     chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache && \
     find /var/www/html -type f -exec chmod 644 {} \; && \
     find /var/www/html -type d -exec chmod 755 {} \; && \
-    chmod -R 775 /var/www/html/storage/logs /var/www/html/storage/framework && \
+    chmod -R 755 /var/www/html/storage/logs /var/www/html/storage/framework && \
     touch ./.devcontainer/first-start.flag
 fi