diff --git a/conf/wp-config.php b/conf/wp-config.php index 36a377f..2e8fd17 100644 --- a/conf/wp-config.php +++ b/conf/wp-config.php @@ -2,71 +2,70 @@ /** * 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. + * 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 + * * Database settings * * Secret keys * * Database table prefix * * ABSPATH * - * @link https://codex.wordpress.org/Editing_wp-config.php + * @link https://wordpress.org/support/article/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 ** // +// ** Database settings - You can get this info from your web host ** // /** The name of the database for WordPress */ -define('DB_NAME', '__DB_NAME__'); +define( 'DB_NAME', '__DB_NAME__' ); -/** MySQL database username */ -define('DB_USER', '__DB_USER__'); +/** Database username */ +define( 'DB_USER', '__DB_USER__' ); -/** MySQL database password */ -define('DB_PASSWORD', '__DB_PWD__'); +/** Database password */ +define( 'DB_PASSWORD', '__DB_PWD__' ); -/** MySQL hostname */ -define('DB_HOST', 'localhost'); +/** Database hostname */ +define( 'DB_HOST', 'localhost' ); -/** Database Charset to use in creating database tables. */ -define('DB_CHARSET', 'utf8'); +/** 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', ''); +/** The database collate type. Don't change this if in doubt. */ +define( 'DB_COLLATE', '' ); /**#@+ - * Authentication Unique Keys and Salts. + * 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. + * 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'); + */ +define( 'AUTH_KEY', 'put your unique phrase here' ); +define( 'SECURE_AUTH_KEY', 'put your unique phrase here' ); +define( 'LOGGED_IN_KEY', 'put your unique phrase here' ); +define( 'NONCE_KEY', 'put your unique phrase here' ); +define( 'AUTH_SALT', 'put your unique phrase here' ); +define( 'SECURE_AUTH_SALT', 'put your unique phrase here' ); +define( 'LOGGED_IN_SALT', 'put your unique phrase here' ); +define( 'NONCE_SALT', 'put your unique phrase here' ); /**#@-*/ /** - * WordPress Database Table prefix. + * 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_'; + */ +$table_prefix = 'wp_'; /** * For developers: WordPress debugging mode. @@ -76,20 +75,22 @@ $table_prefix = 'wp_'; * in their development environments. * * For information on other constants that can be used for debugging, - * visit the Codex. + * visit the documentation. * - * @link https://codex.wordpress.org/Debugging_in_WordPress -*/ -define('WP_DEBUG', false); + * @link https://wordpress.org/support/article/debugging-in-wordpress/ + */ +define( 'WP_DEBUG', false ); -/* That's all, stop editing! Happy blogging. */ +/* Add any custom values between this line and the "stop editing" line. */ + + + +/* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ -if ( !defined('ABSPATH') ) - define('ABSPATH', dirname(__FILE__) . '/'); +if ( ! defined( 'ABSPATH' ) ) { + define( 'ABSPATH', __DIR__ . '/' ); +} /** Sets up WordPress vars and included files. */ -require_once(ABSPATH . 'wp-settings.php'); - -// Force https redirect -//--PUBLIC--define('FORCE_SSL_ADMIN', true); +require_once ABSPATH . 'wp-settings.php'; diff --git a/scripts/install b/scripts/install index a9daba0..55f9189 100644 --- a/scripts/install +++ b/scripts/install @@ -127,7 +127,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) ynh_script_progression --message="Configuring WordPress..." --weight=1 # Change variables in Wordpress configuration -file=__FILE__ +dir=__DIR__ ynh_add_config --template="../conf/wp-config.php" --destination="$final_path/wp-config.php" for i in 1 2 3 4 5 6 7 8