1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00
This commit is contained in:
ericgaspar 2021-09-09 18:45:04 +02:00
parent 18f1124667
commit c4d98b5da0
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 12 additions and 30 deletions

View file

@ -1,11 +1,11 @@
;; Test complet sans multisite
; Manifest
domain="domain.tld" (DOMAIN)
path="/path" (PATH)
admin="john" (USER)
domain="domain.tld"
path="/path"
admin="john"
language="fr_FR"
multisite=0
is_public=1 (PUBLIC|public=1|private=0)
is_public=1
; Actions
is_public=0|1
; Config_panel
@ -34,12 +34,12 @@
config_panel=1
;; Test avec multisite
; Manifest
domain="domain.tld" (DOMAIN)
path="/path" (PATH)
admin="john" (USER)
domain="domain.tld"
path="/path"
admin="john"
language="fr_FR"
multisite=1
is_public=1 (PUBLIC|public=1|private=0)
is_public=1
; Checks
setup_sub_dir=1
setup_root=0

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://wordpress.org/wordpress-5.8.tar.gz
SOURCE_SUM=d29813ab55361318f519f2a8fa6631126a0a8f91ac30f62cb6002c108577e87f
SOURCE_URL=https://wordpress.org/wordpress-5.8.1.tar.gz
SOURCE_SUM=90ca90c4afa37dadc8a4743b5cb111b20cda5f983ce073c2c0bebdce64fa822a
SOURCE_SUM_PRG=sha256sum
ARCH_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Create a beautiful blog or website easily",
"fr": "Logiciel de création de blog ou de site Web"
},
"version": "5.8~ynh1",
"version": "5.8.1~ynh1",
"url": "https://wordpress.org/",
"upstream": {
"license": "GPL-2.0",
@ -24,7 +24,7 @@
"email": "maniackc_dev@crudelis.fr"
}],
"requirements": {
"yunohost": ">= 4.1.2"
"yunohost": ">= 4.2.4"
},
"multi_instance": true,
"services": [
@ -37,29 +37,17 @@
{
"name": "domain",
"type": "domain",
"ask": {
"en": "Choose a domain for WordPress",
"fr": "Choisissez un domaine pour WordPress"
},
"example": "domain.org"
},
{
"name": "path",
"type": "path",
"ask": {
"en": "Choose a path for WordPress",
"fr": "Choisissez un chemin pour WordPress"
},
"example": "/blog",
"default": "/blog"
},
{
"name": "admin",
"type": "user",
"ask": {
"en": "Choose the WordPress administrator (must be an existing YunoHost user)",
"fr": "Administrateur du site (doit être un utilisateur YunoHost existant)"
},
"example": "john"
},
{
@ -84,10 +72,6 @@
{
"name": "is_public",
"type": "boolean",
"ask": {
"en": "Is it a public WordPress site?",
"fr": "Est-ce un site public ?"
},
"default": true,
"help": {
"en": "A public WordPress will be publicly visible for everyone. If you're looking for a public blog, you should choose to install a public WordPress.",

View file

@ -38,8 +38,6 @@ fpm_usage=$(ynh_app_setting_get --app=$app --key=fpm_usage)
#=================================================
ynh_script_progression --message="Validating restoration parameters..."
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "