Jelajahi Sumber

testing new first run

ttreasure 7 bulan lalu
induk
melakukan
646d149822
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 2 3
      .devcontainer/first-start.sh

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

@@ -2,11 +2,10 @@ if [ ! -f ./.devcontainer/first-start.flag ]; then
     echo "Running first-start commands..." && \
     # Add your one-time commands here
      cd /var/www/html && \
-    chown -R www-data: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 755 /var/www/html/storage/logs /var/www/html/storage/framework && \
+    chmod -R 775 /var/www/html/storage/logs /var/www/html/storage/framework && \
     npm install && \
     composer install && \
     php artisan migrate --force && \
@@ -15,6 +14,6 @@ if [ ! -f ./.devcontainer/first-start.flag ]; then
     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 755 /var/www/html/storage/logs /var/www/html/storage/framework && \
+    chmod -R 775 /var/www/html/storage/logs /var/www/html/storage/framework && \
     touch ./.devcontainer/first-start.flag
 fi