mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
commit
0e59f14cd3
7 changed files with 14 additions and 16 deletions
|
@ -6,17 +6,6 @@
|
||||||
language="fr_FR"
|
language="fr_FR"
|
||||||
admin="john"
|
admin="john"
|
||||||
multisite=0
|
multisite=0
|
||||||
; Actions
|
|
||||||
is_public=0|1
|
|
||||||
; Config_panel
|
|
||||||
main.is_public.is_public=0|1
|
|
||||||
main.overwrite_files.overwrite_nginx=0|1
|
|
||||||
main.overwrite_files.overwrite_phpfpm=0|1
|
|
||||||
main.global_config.email_type=0|1
|
|
||||||
main.php_fpm_config.footprint=low|medium|high
|
|
||||||
main.php_fpm_config.free_footprint=20
|
|
||||||
main.php_fpm_config.usage=low|medium|high
|
|
||||||
main.php_fpm_config.force_max_children=20|0
|
|
||||||
; Checks
|
; Checks
|
||||||
pkg_linter=1
|
pkg_linter=1
|
||||||
setup_sub_dir=1
|
setup_sub_dir=1
|
||||||
|
@ -33,8 +22,6 @@
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
port_already_use=0
|
port_already_use=0
|
||||||
change_url=1
|
change_url=1
|
||||||
actions=0
|
|
||||||
config_panel=1
|
|
||||||
;; Test avec multisite
|
;; Test avec multisite
|
||||||
; Manifest
|
; Manifest
|
||||||
domain="domain.tld"
|
domain="domain.tld"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://wordpress.org/wordpress-5.8.tar.gz
|
SOURCE_URL=https://wordpress.org/wordpress-5.9.3.tar.gz
|
||||||
SOURCE_SUM=d29813ab55361318f519f2a8fa6631126a0a8f91ac30f62cb6002c108577e87f
|
SOURCE_SUM=70cbea5d72decfb129f4cc8e6c3d0175ea64bec68e97961b6db0377278a52a56
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
ARCH_FORMAT=tar.gz
|
ARCH_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Create a beautiful blog or website easily",
|
"en": "Create a beautiful blog or website easily",
|
||||||
"fr": "Logiciel de création de blog ou de site Web"
|
"fr": "Logiciel de création de blog ou de site Web"
|
||||||
},
|
},
|
||||||
"version": "5.8~ynh1",
|
"version": "5.9.3~ynh1",
|
||||||
"url": "https://wordpress.org/",
|
"url": "https://wordpress.org/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-2.0",
|
"license": "GPL-2.0",
|
||||||
|
|
|
@ -230,9 +230,12 @@ $wpcli_alias plugin activate authldap $plugin_network
|
||||||
$wpcli_alias plugin activate companion-auto-update $plugin_network
|
$wpcli_alias plugin activate companion-auto-update $plugin_network
|
||||||
$wpcli_alias plugin activate wp-fail2ban-redux $plugin_network
|
$wpcli_alias plugin activate wp-fail2ban-redux $plugin_network
|
||||||
|
|
||||||
|
# Set file and directories ownership
|
||||||
|
mkdir -p $final_path/wp-content/uploads
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
chmod g+s $final_path/wp-content/uploads
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE THE CONFIG FILE CHECKSUM
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
|
|
|
@ -74,9 +74,12 @@ ynh_script_progression --message="Restoring the app main directory..."
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$final_path"
|
ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
|
# Set file and directories ownership
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
chmod g+s $final_path/wp-content/uploads
|
||||||
|
chmod g+s $(find $final_path/wp-content/uploads -type d)
|
||||||
|
|
||||||
chmod 400 "$final_path/wp-config.php"
|
chmod 400 "$final_path/wp-config.php"
|
||||||
chown $app:$app "$final_path/wp-config.php"
|
chown $app:$app "$final_path/wp-config.php"
|
||||||
|
|
|
@ -277,9 +277,14 @@ $wpcli_alias plugin activate wp-fail2ban-redux $plugin_network
|
||||||
# Disable broken plugin http-authentication
|
# Disable broken plugin http-authentication
|
||||||
$wpcli_alias plugin is-installed http-authentication && $wpcli_alias plugin deactivate http-authentication $plugin_network
|
$wpcli_alias plugin is-installed http-authentication && $wpcli_alias plugin deactivate http-authentication $plugin_network
|
||||||
|
|
||||||
|
|
||||||
|
# Set file and directories ownership
|
||||||
|
mkdir -p $final_path/wp-content/uploads
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
chmod g+s $final_path/wp-content/uploads
|
||||||
|
chmod g+s $(find $final_path/wp-content/uploads -type d)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE THE CHECKSUM OF THE CONFIG FILE
|
# STORE THE CHECKSUM OF THE CONFIG FILE
|
||||||
|
|
Loading…
Add table
Reference in a new issue