Kayou
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with
17 additions and
7 deletions
-
README.md
-
README_fr.md
-
conf/app.src
-
conf/sql/multisite.sql
-
conf/sql/single.sql
-
manifest.json
-
scripts/install
-
scripts/upgrade
|
|
@ -12,7 +12,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to |
|
|
WordPress is open source software you can use to create a beautiful website, blog, or app. |
|
|
WordPress is open source software you can use to create a beautiful website, blog, or app. |
|
|
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:** 5.7 |
|
|
|
|
|
|
|
|
**Shipped version:** 5.7.2 |
|
|
|
|
|
|
|
|
## Screenshots |
|
|
## Screenshots |
|
|
|
|
|
|
|
|
|
|
|
@ -12,7 +12,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install |
|
|
WordPress est un logiciel libre que vous pouvez utiliser pour créer un site ou un blog. |
|
|
WordPress est un logiciel libre que vous pouvez utiliser pour créer un site ou un blog. |
|
|
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 :** 5.7 |
|
|
|
|
|
|
|
|
**Version incluse :** 5.7.2 |
|
|
|
|
|
|
|
|
## Captures d'écran |
|
|
## Captures d'écran |
|
|
|
|
|
|
|
|
|
|
|
@ -1,5 +1,5 @@ |
|
|
SOURCE_URL=https://wordpress.org/wordpress-5.7.tar.gz |
|
|
|
|
|
SOURCE_SUM=92be8c4afd0186f783a12bad994baecc8f941a88535acddecbae0d7702169b71 |
|
|
|
|
|
|
|
|
SOURCE_URL=https://wordpress.org/wordpress-5.7.2.tar.gz |
|
|
|
|
|
SOURCE_SUM=eb8d05208159469d0be3cb339f7b6a150a39f503faf679c255028433f5131219 |
|
|
SOURCE_SUM_PRG=sha256sum |
|
|
SOURCE_SUM_PRG=sha256sum |
|
|
ARCH_FORMAT=tar.gz |
|
|
ARCH_FORMAT=tar.gz |
|
|
SOURCE_IN_SUBDIR=true |
|
|
SOURCE_IN_SUBDIR=true |
|
|
|
|
|
@ -1 +1 @@ |
|
|
REPLACE INTO wp_sitemeta VALUES(NULL,1,'authLDAPOptions','a:22:{s:7:"Enabled";s:1:"1";s:7:"CachePW";b:0;s:3:"URI";s:44:"ldap://localhost/ou=users,dc=yunohost,dc=org";s:12:"URISeparator";s:1:" ";s:6:"Filter";s:__LENGTH__:"(&(|(objectclass=posixAccount))(uid=%s)(permission=cn=__APP__.admin,ou=permission,dc=yunohost,dc=org))";s:8:"NameAttr";s:9:"givenName";s:7:"SecName";s:2:"sn";s:7:"UidAttr";s:3:"uid";s:8:"MailAttr";s:4:"mail";s:7:"WebAttr";s:0:"";s:6:"Groups";a:5:{s:13:"administrator";s:0:"";s:6:"editor";s:0:"";s:6:"author";s:0:"";s:11:"contributor";s:0:"";s:10:"subscriber";s:0:"";}s:5:"Debug";b:0;s:9:"GroupAttr";s:0:"";s:11:"GroupFilter";s:0:"";s:11:"DefaultRole";s:10:"subscriber";s:11:"GroupEnable";b:0;s:13:"GroupOverUser";b:0;s:7:"Version";i:1;s:26:"DoNotOverwriteNonLdapUsers";b:0;s:8:"StartTLS";b:0;s:14:"GroupSeparator";s:0:"";s:9:"GroupBase";s:0:"";}'); |
|
|
|
|
|
|
|
|
REPLACE INTO __DB_PREFIX__sitemeta VALUES(NULL,1,'authLDAPOptions','a:22:{s:7:"Enabled";s:1:"1";s:7:"CachePW";b:0;s:3:"URI";s:44:"ldap://localhost/ou=users,dc=yunohost,dc=org";s:12:"URISeparator";s:1:" ";s:6:"Filter";s:__LENGTH__:"(&(|(objectclass=posixAccount))(uid=%s)(permission=cn=__APP__.admin,ou=permission,dc=yunohost,dc=org))";s:8:"NameAttr";s:9:"givenName";s:7:"SecName";s:2:"sn";s:7:"UidAttr";s:3:"uid";s:8:"MailAttr";s:4:"mail";s:7:"WebAttr";s:0:"";s:6:"Groups";a:5:{s:13:"administrator";s:0:"";s:6:"editor";s:0:"";s:6:"author";s:0:"";s:11:"contributor";s:0:"";s:10:"subscriber";s:0:"";}s:5:"Debug";b:0;s:9:"GroupAttr";s:0:"";s:11:"GroupFilter";s:0:"";s:11:"DefaultRole";s:10:"subscriber";s:11:"GroupEnable";b:0;s:13:"GroupOverUser";b:0;s:7:"Version";i:1;s:26:"DoNotOverwriteNonLdapUsers";b:0;s:8:"StartTLS";b:0;s:14:"GroupSeparator";s:0:"";s:9:"GroupBase";s:0:"";}'); |
|
|
@ -1 +1 @@ |
|
|
REPLACE INTO wp_options VALUES(NULL,'authLDAPOptions','a:22:{s:7:"Enabled";s:1:"1";s:7:"CachePW";b:0;s:3:"URI";s:44:"ldap://localhost/ou=users,dc=yunohost,dc=org";s:12:"URISeparator";s:1:" ";s:6:"Filter";s:__LENGTH__:"(&(|(objectclass=posixAccount))(uid=%s)(permission=cn=__APP__.admin,ou=permission,dc=yunohost,dc=org))";s:8:"NameAttr";s:9:"givenName";s:7:"SecName";s:2:"sn";s:7:"UidAttr";s:3:"uid";s:8:"MailAttr";s:4:"mail";s:7:"WebAttr";s:0:"";s:6:"Groups";a:5:{s:13:"administrator";s:0:"";s:6:"editor";s:0:"";s:6:"author";s:0:"";s:11:"contributor";s:0:"";s:10:"subscriber";s:0:"";}s:5:"Debug";b:0;s:9:"GroupAttr";s:0:"";s:11:"GroupFilter";s:0:"";s:11:"DefaultRole";s:10:"subscriber";s:11:"GroupEnable";b:0;s:13:"GroupOverUser";b:0;s:7:"Version";i:1;s:26:"DoNotOverwriteNonLdapUsers";b:0;s:8:"StartTLS";b:0;s:14:"GroupSeparator";s:0:"";s:9:"GroupBase";s:0:"";}','yes'); |
|
|
|
|
|
|
|
|
REPLACE INTO __DB_PREFIX__options VALUES(NULL,'authLDAPOptions','a:22:{s:7:"Enabled";s:1:"1";s:7:"CachePW";b:0;s:3:"URI";s:44:"ldap://localhost/ou=users,dc=yunohost,dc=org";s:12:"URISeparator";s:1:" ";s:6:"Filter";s:__LENGTH__:"(&(|(objectclass=posixAccount))(uid=%s)(permission=cn=__APP__.admin,ou=permission,dc=yunohost,dc=org))";s:8:"NameAttr";s:9:"givenName";s:7:"SecName";s:2:"sn";s:7:"UidAttr";s:3:"uid";s:8:"MailAttr";s:4:"mail";s:7:"WebAttr";s:0:"";s:6:"Groups";a:5:{s:13:"administrator";s:0:"";s:6:"editor";s:0:"";s:6:"author";s:0:"";s:11:"contributor";s:0:"";s:10:"subscriber";s:0:"";}s:5:"Debug";b:0;s:9:"GroupAttr";s:0:"";s:11:"GroupFilter";s:0:"";s:11:"DefaultRole";s:10:"subscriber";s:11:"GroupEnable";b:0;s:13:"GroupOverUser";b:0;s:7:"Version";i:1;s:26:"DoNotOverwriteNonLdapUsers";b:0;s:8:"StartTLS";b:0;s:14:"GroupSeparator";s:0:"";s:9:"GroupBase";s:0:"";}','yes'); |
|
|
@ -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.7~ynh1", |
|
|
|
|
|
|
|
|
"version": "5.7.2~ynh1", |
|
|
"url": "https://wordpress.org/", |
|
|
"url": "https://wordpress.org/", |
|
|
"license": "GPL-2.0", |
|
|
"license": "GPL-2.0", |
|
|
"maintainer": { |
|
|
"maintainer": { |
|
|
|
|
|
@ -202,12 +202,16 @@ then |
|
|
# Activate multisite in wordpress config |
|
|
# Activate multisite in wordpress config |
|
|
ynh_replace_string --match_string="//--MULTISITE2--define" --replace_string="define" --target_file=$final_path/wp-config.php |
|
|
ynh_replace_string --match_string="//--MULTISITE2--define" --replace_string="define" --target_file=$final_path/wp-config.php |
|
|
|
|
|
|
|
|
|
|
|
db_prefix="wp_" |
|
|
|
|
|
ynh_replace_string --match_string="__DB_PREFIX__" --replace_string="$db_prefix" --target_file=../conf/sql/multisite.sql |
|
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=../conf/sql/multisite.sql |
|
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=../conf/sql/multisite.sql |
|
|
ynh_replace_string --match_string="__LENGTH__" --replace_string="$((${#app} + 95))" --target_file=../conf/sql/multisite.sql |
|
|
ynh_replace_string --match_string="__LENGTH__" --replace_string="$((${#app} + 95))" --target_file=../conf/sql/multisite.sql |
|
|
|
|
|
|
|
|
ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ../conf/sql/multisite.sql |
|
|
ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ../conf/sql/multisite.sql |
|
|
plugin_network="--network" |
|
|
plugin_network="--network" |
|
|
else |
|
|
else |
|
|
|
|
|
db_prefix="wp_" |
|
|
|
|
|
ynh_replace_string --match_string="__DB_PREFIX__" --replace_string="$db_prefix" --target_file=../conf/sql/single.sql |
|
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=../conf/sql/single.sql |
|
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=../conf/sql/single.sql |
|
|
ynh_replace_string --match_string="__LENGTH__" --replace_string="$((${#app} + 95))" --target_file=../conf/sql/single.sql |
|
|
ynh_replace_string --match_string="__LENGTH__" --replace_string="$((${#app} + 95))" --target_file=../conf/sql/single.sql |
|
|
|
|
|
|
|
|
|
|
|
@ -227,6 +227,9 @@ then |
|
|
|
|
|
|
|
|
ynh_systemd_action --service_name=nginx --action=reload |
|
|
ynh_systemd_action --service_name=nginx --action=reload |
|
|
|
|
|
|
|
|
|
|
|
db_prefix=$(grep '^$table_prefix' "$final_path/wp-config.php" | sed "s/.*'\(.*\)'.*/\1/" ) |
|
|
|
|
|
|
|
|
|
|
|
ynh_replace_string --match_string="__DB_PREFIX__" --replace_string="$db_prefix" --target_file=../conf/sql/multisite.sql |
|
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=../conf/sql/multisite.sql |
|
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=../conf/sql/multisite.sql |
|
|
ynh_replace_string --match_string="__LENGTH__" --replace_string="$((${#app} + 95))" --target_file=../conf/sql/multisite.sql |
|
|
ynh_replace_string --match_string="__LENGTH__" --replace_string="$((${#app} + 95))" --target_file=../conf/sql/multisite.sql |
|
|
|
|
|
|
|
|
@ -234,6 +237,9 @@ then |
|
|
plugin_network="--network" |
|
|
plugin_network="--network" |
|
|
else |
|
|
else |
|
|
multisite=0 |
|
|
multisite=0 |
|
|
|
|
|
db_prefix=$(grep '^$table_prefix' "$final_path/wp-config.php" | sed "s/.*'\(.*\)'.*/\1/" ) |
|
|
|
|
|
|
|
|
|
|
|
ynh_replace_string --match_string="__DB_PREFIX__" --replace_string="$db_prefix" --target_file=../conf/sql/single.sql |
|
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=../conf/sql/single.sql |
|
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=../conf/sql/single.sql |
|
|
ynh_replace_string --match_string="__LENGTH__" --replace_string="$((${#app} + 95))" --target_file=../conf/sql/single.sql |
|
|
ynh_replace_string --match_string="__LENGTH__" --replace_string="$((${#app} + 95))" --target_file=../conf/sql/single.sql |
|
|
|
|
|
|
|
|
|