13 changed files with 53 additions and 843 deletions
-
4conf/app.src
-
2conf/extra_php-fpm.conf
-
16conf/nginx.conf
-
1conf/sql/multisite.sql
-
1conf/sql/single.sql
-
95conf/wp-config.php
-
35manifest.json
-
439scripts/_common.sh
-
56scripts/actions/disable_maintenance
-
25scripts/change_url
-
212scripts/install
-
6scripts/remove
-
2scripts/restore
@ -1,5 +1,5 @@ |
|||||
SOURCE_URL=https://wordpress.org/wordpress-5.7.2.tar.gz |
|
||||
SOURCE_SUM=eb8d05208159469d0be3cb339f7b6a150a39f503faf679c255028433f5131219 |
|
||||
|
SOURCE_URL=https://downloads.sourceforge.net/project/tikiwiki/Tiki_22.x_Corona_Borealis/22.1/tiki-22.1.tar.gz |
||||
|
SOURCE_SUM=c102ef42e8e49c8883267e020246c6c7fb415b0763b1895cbb0fdd6c0151da9b |
||||
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,5 +1,5 @@ |
|||||
; Additional php.ini defines, specific to this pool of workers. |
; Additional php.ini defines, specific to this pool of workers. |
||||
|
|
||||
php_admin_value[upload_max_filesize] = 50M |
php_admin_value[upload_max_filesize] = 50M |
||||
php_admin_value[memory_limit] = 64M |
|
||||
|
php_admin_value[memory_limit] = 128M |
||||
php_admin_value[post_max_size] = 50M |
php_admin_value[post_max_size] = 50M |
||||
@ -1 +0,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 +0,0 @@ |
|||||
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'); |
|
||||
@ -1,95 +0,0 @@ |
|||||
<?php |
|
||||
/** |
|
||||
* The base configuration for WordPress |
|
||||
* |
|
||||
* The wp-config.php creation script uses this file during the |
|
||||
* installation. You don't have to use the web site, you can |
|
||||
* copy this file to "wp-config.php" and fill in the values. |
|
||||
* |
|
||||
* This file contains the following configurations: |
|
||||
* |
|
||||
* * MySQL settings |
|
||||
* * Secret keys |
|
||||
* * Database table prefix |
|
||||
* * ABSPATH |
|
||||
* |
|
||||
* @link https://codex.wordpress.org/Editing_wp-config.php |
|
||||
* |
|
||||
* @package WordPress |
|
||||
*/ |
|
||||
|
|
||||
/** Disable the wordress cron because it's managed by the system */ |
|
||||
define('DISABLE_WP_CRON', true); |
|
||||
|
|
||||
// ** MySQL settings - You can get this info from your web host ** //
|
|
||||
/** The name of the database for WordPress */ |
|
||||
define('DB_NAME', '__DB_USER__'); |
|
||||
|
|
||||
/** MySQL database username */ |
|
||||
define('DB_USER', '__DB_USER__'); |
|
||||
|
|
||||
/** MySQL database password */ |
|
||||
define('DB_PASSWORD', '__DB_PWD__'); |
|
||||
|
|
||||
/** MySQL hostname */ |
|
||||
define('DB_HOST', 'localhost'); |
|
||||
|
|
||||
/** Database Charset to use in creating database tables. */ |
|
||||
define('DB_CHARSET', 'utf8'); |
|
||||
|
|
||||
/** The Database Collate type. Don't change this if in doubt. */ |
|
||||
define('DB_COLLATE', ''); |
|
||||
|
|
||||
/**#@+
|
|
||||
* Authentication Unique Keys and Salts. |
|
||||
* |
|
||||
* Change these to different unique phrases! |
|
||||
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} |
|
||||
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. |
|
||||
* |
|
||||
* @since 2.6.0 |
|
||||
*/ |
|
||||
define('AUTH_KEY', 'KEY1'); |
|
||||
define('SECURE_AUTH_KEY', 'KEY2'); |
|
||||
define('LOGGED_IN_KEY', 'KEY3'); |
|
||||
define('NONCE_KEY', 'KEY4'); |
|
||||
define('AUTH_SALT', 'KEY5'); |
|
||||
define('SECURE_AUTH_SALT', 'KEY6'); |
|
||||
define('LOGGED_IN_SALT', 'KEY7'); |
|
||||
define('NONCE_SALT', 'KEY8'); |
|
||||
|
|
||||
/**#@-*/ |
|
||||
|
|
||||
/** |
|
||||
* WordPress Database Table prefix. |
|
||||
* |
|
||||
* You can have multiple installations in one database if you give each |
|
||||
* a unique prefix. Only numbers, letters, and underscores please! |
|
||||
*/ |
|
||||
$table_prefix = 'wp_'; |
|
||||
|
|
||||
/** |
|
||||
* For developers: WordPress debugging mode. |
|
||||
* |
|
||||
* Change this to true to enable the display of notices during development. |
|
||||
* It is strongly recommended that plugin and theme developers use WP_DEBUG |
|
||||
* in their development environments. |
|
||||
* |
|
||||
* For information on other constants that can be used for debugging, |
|
||||
* visit the Codex. |
|
||||
* |
|
||||
* @link https://codex.wordpress.org/Debugging_in_WordPress |
|
||||
*/ |
|
||||
define('WP_DEBUG', false); |
|
||||
|
|
||||
/* That's all, stop editing! Happy blogging. */ |
|
||||
|
|
||||
/** Absolute path to the WordPress directory. */ |
|
||||
if ( !defined('ABSPATH') ) |
|
||||
define('ABSPATH', dirname(__FILE__) . '/'); |
|
||||
|
|
||||
/** Sets up WordPress vars and included files. */ |
|
||||
require_once(ABSPATH . 'wp-settings.php'); |
|
||||
|
|
||||
// Force https redirect
|
|
||||
//--PUBLIC--define('FORCE_SSL_ADMIN', true);
|
|
||||
@ -1,56 +0,0 @@ |
|||||
#!/bin/bash |
|
||||
|
|
||||
#================================================= |
|
||||
# GENERIC STARTING |
|
||||
#================================================= |
|
||||
# IMPORT GENERIC HELPERS |
|
||||
#================================================= |
|
||||
|
|
||||
source scripts/_common.sh |
|
||||
source /usr/share/yunohost/helpers |
|
||||
|
|
||||
#================================================= |
|
||||
# MANAGE SCRIPT FAILURE |
|
||||
#================================================= |
|
||||
|
|
||||
# Exit if an error occurs during the execution of the script |
|
||||
ynh_abort_if_errors |
|
||||
|
|
||||
#================================================= |
|
||||
# RETRIEVE ARGUMENTS |
|
||||
#================================================= |
|
||||
|
|
||||
app=${YNH_APP_INSTANCE_NAME} |
|
||||
|
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path) |
|
||||
|
|
||||
#================================================= |
|
||||
# CHECK IF ARGUMENTS ARE CORRECT |
|
||||
#================================================= |
|
||||
|
|
||||
#================================================= |
|
||||
# CHECK IF AN ACTION HAS TO BE DONE |
|
||||
#================================================= |
|
||||
|
|
||||
# Check the current status of the maintenance mode |
|
||||
|
|
||||
if [ ! -e "$final_path/.maintenance" ] |
|
||||
then |
|
||||
ynh_die --message="WordPress isn't currently under maintenance." --ret_code=0 |
|
||||
fi |
|
||||
|
|
||||
#================================================= |
|
||||
# SPECIFIC ACTION |
|
||||
#================================================= |
|
||||
# DISABLE THE MAINTENANCE MODE |
|
||||
#================================================= |
|
||||
|
|
||||
ynh_script_progression --message="Disabling maintenance mode..." |
|
||||
|
|
||||
ynh_secure_remove --file="$final_path/.maintenance" |
|
||||
|
|
||||
#================================================= |
|
||||
# END OF SCRIPT |
|
||||
#================================================= |
|
||||
|
|
||||
ynh_script_progression --message="Execution completed" --last |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue