Browse Source

update

testing
Gabriel Cossette 5 years ago
parent
commit
8f9d3742aa
  1. 5
      manifest.json
  2. 11
      scripts/install

5
manifest.json

@ -35,7 +35,8 @@
"en": "Choose a domain for WordPress", "en": "Choose a domain for WordPress",
"fr": "Choisissez un domaine pour WordPress" "fr": "Choisissez un domaine pour WordPress"
}, },
"example": "domain.org"
"example": "domain.org",
"default": "site.yntest.weblibre.ca"
}, },
{ {
"name": "path", "name": "path",
@ -45,7 +46,7 @@
"fr": "Choisissez un chemin pour WordPress" "fr": "Choisissez un chemin pour WordPress"
}, },
"example": "/blog", "example": "/blog",
"default": "/blog"
"default": "/"
}, },
{ {
"name": "admin", "name": "admin",

11
scripts/install

@ -252,9 +252,14 @@ echo "# Reach everyday wp-cron.php to trig the internal WordPress cron.
# Set permissions to app files # Set permissions to app files
# Files have to be own by the user of wordpress. To allow upgrade from the app. # Files have to be own by the user of wordpress. To allow upgrade from the app.
chown -R $app: $final_path 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 # SETUP FAIL2BAN

Loading…
Cancel
Save