1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Merge pull request #228 from YunoHost-Apps/testing

testing
This commit is contained in:
Alexandre Aubin 2023-11-28 02:02:08 +01:00 committed by GitHub
commit 87df2c347b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 13 deletions

View file

@ -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.
**Shipped version:** 6.3.0~ynh1
**Shipped version:** 6.3.1~ynh1
## Screenshots

View file

@ -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).
**Version incluse :** 6.3.0~ynh1
**Version incluse :** 6.3.1~ynh1
## Captures décran

View file

@ -5,7 +5,7 @@ name = "WordPress"
description.en = "Create a beautiful blog or website easily"
description.fr = "Logiciel de création de blog ou de site Web"
version = "6.3.0~ynh1"
version = "6.3.1~ynh1"
maintainers = ["kay0u"]
@ -40,7 +40,7 @@ ram.runtime = "50M"
[install.language]
ask.en = "Choose the application language"
ask.fr = "Choisissez la langue de l'application"
type = "string"
type = "select"
choices = ["en_US", "fr_FR"]
default = "en_US"
@ -55,8 +55,8 @@ ram.runtime = "50M"
[resources]
[resources.sources.main]
url = "https://downloads.wordpress.org/release/wordpress-6.3.zip"
sha256 = "b4f0b53c9652b2d24d8762bec96a0604538b44b15f05187367112c0c8ea3abcf"
url = "https://downloads.wordpress.org/release/wordpress-6.3.1.zip"
sha256 = "8a3c60c390b1e29143ba49292a5e38d8f7bff2ff6b67a3e4988d157f555a0601"
[resources.system_user]
@ -67,9 +67,10 @@ ram.runtime = "50M"
admin.url = "/wp-login.php"
admin.additional_urls = ["/wp-admin.php"]
admin.allowed = "admins"
admin.show_tile = false
[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]
type = "mysql"

View file

@ -24,7 +24,7 @@ current_fpm_footprint=$(ynh_app_setting_get --app=$app --key=fpm_footprint)
get__maintenance_mode() {
# Maintenance mode status
if [ -f $final_path/.maintenance ]
if [ -f $install_dir/.maintenance ]
then
echo "1"
else
@ -62,13 +62,12 @@ get__free_footprint() {
set__maintenance_mode() {
if [ "$maintenance_mode" -eq "1" ]; then
# If maintenance_mode was set to 1, enable maintenance mode
(cd "$final_path" && ynh_exec_as "$app" \
echo "Site under maintenance." > .maintenance)
ynh_print_info "Maintenance mode disabled"
ynh_exec_as "$app" echo "Site under maintenance." > $install_dir/.maintenance
ynh_print_info "Maintenance mode enabled"
elif [ "$maintenance_mode" -eq "0" ]; then
# If maintenance_mode was set to 0, disable maintenance mode
ynh_secure_remove --file=$final_path/.maintenance
ynh_print_info "Maintenance mode enabled"
ynh_secure_remove --file=$install_dir/.maintenance
ynh_print_info "Maintenance mode disabled"
fi
ynh_app_setting_set --app=$app --key=maintenance_mode --value="$maintenance_mode"
}