diff --git a/manifest.json b/manifest.json index fcfe9f1..2d0cd63 100644 --- a/manifest.json +++ b/manifest.json @@ -35,7 +35,8 @@ "en": "Choose a domain for WordPress", "fr": "Choisissez un domaine pour WordPress" }, - "example": "domain.org" + "example": "domain.org", + "default": "site.yntest.weblibre.ca" }, { "name": "path", @@ -45,7 +46,7 @@ "fr": "Choisissez un chemin pour WordPress" }, "example": "/blog", - "default": "/blog" + "default": "/" }, { "name": "admin", diff --git a/scripts/install b/scripts/install index 635beea..22b4e60 100644 --- a/scripts/install +++ b/scripts/install @@ -252,9 +252,14 @@ echo "# Reach everyday wp-cron.php to trig the internal WordPress cron. # Set permissions to app files # Files have to be own by the user of wordpress. To allow upgrade from the app. chown -R $app: $final_path -# Except the file config wp-config.php -chown root:$app $final_path/wp-config.php -chmod 640 $final_path/wp-config.php +setfacl -d -R -m u:tiny_file_manager:rw $final_path +setfacl -d -R -m g:tiny_file_manager.main:rw $final_path +find $final_path -type d -exec setfacl -m u:tiny_file_manager:rwx {} \; +find $final_path -type f -exec setfacl -m u:tiny_file_manager:rw {} \; +find $final_path -type d -exec setfacl -m g:tiny_file_manager.main:rwx {} \; +find $final_path -type f -exec setfacl -m g:tiny_file_manager.main:rw {} \; +chmod -R g+w $final_path +find $final_path -type d -exec chmod g+s {} \; #================================================= # SETUP FAIL2BAN