mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
commit
87df2c347b
4 changed files with 13 additions and 13 deletions
|
@ -20,7 +20,7 @@ WordPress is open source software you can use to create a beautiful website, blo
|
||||||
With this package, you can even activate the [multisite](https://wordpress.org/support/article/glossary/#multisite) option.
|
With this package, you can even activate the [multisite](https://wordpress.org/support/article/glossary/#multisite) option.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 6.3.0~ynh1
|
**Shipped version:** 6.3.1~ynh1
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ WordPress est un logiciel libre que vous pouvez utiliser pour créer un site ou
|
||||||
Avec ce package, vous pouvez même activer l'option [multisite](https://codex.wordpress.org/Glossary#Multisite).
|
Avec ce package, vous pouvez même activer l'option [multisite](https://codex.wordpress.org/Glossary#Multisite).
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 6.3.0~ynh1
|
**Version incluse :** 6.3.1~ynh1
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "WordPress"
|
||||||
description.en = "Create a beautiful blog or website easily"
|
description.en = "Create a beautiful blog or website easily"
|
||||||
description.fr = "Logiciel de création de blog ou de site Web"
|
description.fr = "Logiciel de création de blog ou de site Web"
|
||||||
|
|
||||||
version = "6.3.0~ynh1"
|
version = "6.3.1~ynh1"
|
||||||
|
|
||||||
maintainers = ["kay0u"]
|
maintainers = ["kay0u"]
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ ram.runtime = "50M"
|
||||||
[install.language]
|
[install.language]
|
||||||
ask.en = "Choose the application language"
|
ask.en = "Choose the application language"
|
||||||
ask.fr = "Choisissez la langue de l'application"
|
ask.fr = "Choisissez la langue de l'application"
|
||||||
type = "string"
|
type = "select"
|
||||||
choices = ["en_US", "fr_FR"]
|
choices = ["en_US", "fr_FR"]
|
||||||
default = "en_US"
|
default = "en_US"
|
||||||
|
|
||||||
|
@ -55,8 +55,8 @@ ram.runtime = "50M"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://downloads.wordpress.org/release/wordpress-6.3.zip"
|
url = "https://downloads.wordpress.org/release/wordpress-6.3.1.zip"
|
||||||
sha256 = "b4f0b53c9652b2d24d8762bec96a0604538b44b15f05187367112c0c8ea3abcf"
|
sha256 = "8a3c60c390b1e29143ba49292a5e38d8f7bff2ff6b67a3e4988d157f555a0601"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
|
@ -67,9 +67,10 @@ ram.runtime = "50M"
|
||||||
admin.url = "/wp-login.php"
|
admin.url = "/wp-login.php"
|
||||||
admin.additional_urls = ["/wp-admin.php"]
|
admin.additional_urls = ["/wp-admin.php"]
|
||||||
admin.allowed = "admins"
|
admin.allowed = "admins"
|
||||||
|
admin.show_tile = false
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = "mariadb-server php8.2-mysql php8.2-curl php8.2-mbstring php8.2-xml php8.2-zip php8.2-gd php8.2-soap php8.2-ssh2 php8.2-tokenizer php8.2-ldap"
|
packages = "mariadb-server, php8.2-mysql, php8.2-curl, php8.2-mbstring, php8.2-xml, php8.2-zip, php8.2-gd, php8.2-soap, php8.2-ssh2, php8.2-tokenizer, php8.2-ldap"
|
||||||
|
|
||||||
[resources.database]
|
[resources.database]
|
||||||
type = "mysql"
|
type = "mysql"
|
||||||
|
|
|
@ -24,7 +24,7 @@ current_fpm_footprint=$(ynh_app_setting_get --app=$app --key=fpm_footprint)
|
||||||
|
|
||||||
get__maintenance_mode() {
|
get__maintenance_mode() {
|
||||||
# Maintenance mode status
|
# Maintenance mode status
|
||||||
if [ -f $final_path/.maintenance ]
|
if [ -f $install_dir/.maintenance ]
|
||||||
then
|
then
|
||||||
echo "1"
|
echo "1"
|
||||||
else
|
else
|
||||||
|
@ -62,13 +62,12 @@ get__free_footprint() {
|
||||||
set__maintenance_mode() {
|
set__maintenance_mode() {
|
||||||
if [ "$maintenance_mode" -eq "1" ]; then
|
if [ "$maintenance_mode" -eq "1" ]; then
|
||||||
# If maintenance_mode was set to 1, enable maintenance mode
|
# If maintenance_mode was set to 1, enable maintenance mode
|
||||||
(cd "$final_path" && ynh_exec_as "$app" \
|
ynh_exec_as "$app" echo "Site under maintenance." > $install_dir/.maintenance
|
||||||
echo "Site under maintenance." > .maintenance)
|
ynh_print_info "Maintenance mode enabled"
|
||||||
ynh_print_info "Maintenance mode disabled"
|
|
||||||
elif [ "$maintenance_mode" -eq "0" ]; then
|
elif [ "$maintenance_mode" -eq "0" ]; then
|
||||||
# If maintenance_mode was set to 0, disable maintenance mode
|
# If maintenance_mode was set to 0, disable maintenance mode
|
||||||
ynh_secure_remove --file=$final_path/.maintenance
|
ynh_secure_remove --file=$install_dir/.maintenance
|
||||||
ynh_print_info "Maintenance mode enabled"
|
ynh_print_info "Maintenance mode disabled"
|
||||||
fi
|
fi
|
||||||
ynh_app_setting_set --app=$app --key=maintenance_mode --value="$maintenance_mode"
|
ynh_app_setting_set --app=$app --key=maintenance_mode --value="$maintenance_mode"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue