diff options
author | root <root@vps-18a7a2b7.vps.ovh.ca> | 2023-05-24 15:21:14 -0400 |
---|---|---|
committer | root <root@vps-18a7a2b7.vps.ovh.ca> | 2023-05-24 15:21:14 -0400 |
commit | 7d00e574a0643f22a1dc5796d7d78f37dc45c07e (patch) | |
tree | 5d8d9ef56d8666d99ae0b34fd5d0bd2a9210d4c6 /wordpress | |
parent | 3a5d8c9385a288b284e591ec09df74dda13bc454 (diff) |
rename
Diffstat (limited to 'wordpress')
-rwxr-xr-x | wordpress/wordpress-create-wp-config | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/wordpress/wordpress-create-wp-config b/wordpress/wordpress-create-wp-config new file mode 100755 index 0000000..d0f4447 --- /dev/null +++ b/wordpress/wordpress-create-wp-config | |||
@@ -0,0 +1,112 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | DB_NAME=$1 | ||
4 | DB_USER=$2 | ||
5 | DB_PASSWORD=$(tr -cd a-z < /dev/urandom | head -c14) | ||
6 | Random1=$(tr -cd 0-9a-f < /dev/urandom | head -c32) | ||
7 | Random2=$(tr -cd 0-9a-f < /dev/urandom | head -c32) | ||
8 | Random3=$(tr -cd 0-9a-f < /dev/urandom | head -c32) | ||
9 | Random4=$(tr -cd 0-9a-f < /dev/urandom | head -c32) | ||
10 | Random5=$(tr -cd 0-9a-f < /dev/urandom | head -c32) | ||
11 | Random6=$(tr -cd 0-9a-f < /dev/urandom | head -c32) | ||
12 | Random7=$(tr -cd 0-9a-f < /dev/urandom | head -c32) | ||
13 | Random8=$(tr -cd 0-9a-f < /dev/urandom | head -c32) | ||
14 | |||
15 | cat <<END | ||
16 | <?php | ||
17 | /** | ||
18 | * The base configuration for WordPress | ||
19 | * | ||
20 | * The wp-config.php creation script uses this file during the installation. | ||
21 | * You don't have to use the web site, you can copy this file to "wp-config.php" | ||
22 | * and fill in the values. | ||
23 | * | ||
24 | * This file contains the following configurations: | ||
25 | * | ||
26 | * * Database settings | ||
27 | * * Secret keys | ||
28 | * * Database table prefix | ||
29 | * * ABSPATH | ||
30 | * | ||
31 | * @link https://wordpress.org/support/article/editing-wp-config-php/ | ||
32 | * | ||
33 | * @package WordPress | ||
34 | */ | ||
35 | |||
36 | // ** Database settings - You can get this info from your web host ** // | ||
37 | /** The name of the database for WordPress */ | ||
38 | define( 'DB_NAME', '$DB_NAME' ); | ||
39 | |||
40 | /** Database username */ | ||
41 | define( 'DB_USER', '$DB_USER' ); | ||
42 | |||
43 | /** Database password */ | ||
44 | define( 'DB_PASSWORD', '$DB_PASSWORD' ); | ||
45 | |||
46 | /** Database hostname */ | ||
47 | define( 'DB_HOST', 'localhost' ); | ||
48 | |||
49 | /** Database charset to use in creating database tables. */ | ||
50 | define( 'DB_CHARSET', 'utf8' ); | ||
51 | |||
52 | /** The database collate type. Don't change this if in doubt. */ | ||
53 | define( 'DB_COLLATE', '' ); | ||
54 | |||
55 | /**#@+ | ||
56 | * Authentication unique keys and salts. | ||
57 | * | ||
58 | * Change these to different unique phrases! You can generate these using | ||
59 | * the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}. | ||
60 | * | ||
61 | * You can change these at any point in time to invalidate all existing cookies. | ||
62 | * This will force all users to have to log in again. | ||
63 | * | ||
64 | * @since 2.6.0 | ||
65 | */ | ||
66 | define( 'AUTH_KEY', '$Random1' ); | ||
67 | define( 'SECURE_AUTH_KEY', '$Random2' ); | ||
68 | define( 'LOGGED_IN_KEY', '$Random3' ); | ||
69 | define( 'NONCE_KEY', '$Random4' ); | ||
70 | define( 'AUTH_SALT', '$Random5' ); | ||
71 | define( 'SECURE_AUTH_SALT', '$Random6' ); | ||
72 | define( 'LOGGED_IN_SALT', '$Random7' ); | ||
73 | define( 'NONCE_SALT', '$Random8' ); | ||
74 | |||
75 | /**#@-*/ | ||
76 | |||
77 | /** | ||
78 | * WordPress database table prefix. | ||
79 | * | ||
80 | * You can have multiple installations in one database if you give each | ||
81 | * a unique prefix. Only numbers, letters, and underscores please! | ||
82 | */ | ||
83 | \$table_prefix = 'wp_'; | ||
84 | |||
85 | /** | ||
86 | * For developers: WordPress debugging mode. | ||
87 | * | ||
88 | * Change this to true to enable the display of notices during development. | ||
89 | * It is strongly recommended that plugin and theme developers use WP_DEBUG | ||
90 | * in their development environments. | ||
91 | * | ||
92 | * For information on other constants that can be used for debugging, | ||
93 | * visit the documentation. | ||
94 | * | ||
95 | * @link https://wordpress.org/support/article/debugging-in-wordpress/ | ||
96 | */ | ||
97 | define( 'WP_DEBUG', false ); | ||
98 | |||
99 | /* Add any custom values between this line and the "stop editing" line. */ | ||
100 | |||
101 | |||
102 | |||
103 | /* That's all, stop editing! Happy publishing. */ | ||
104 | |||
105 | /** Absolute path to the WordPress directory. */ | ||
106 | if ( ! defined( 'ABSPATH' ) ) { | ||
107 | define( 'ABSPATH', __DIR__ . '/' ); | ||
108 | } | ||
109 | |||
110 | /** Sets up WordPress vars and included files. */ | ||
111 | require_once ABSPATH . 'wp-settings.php'; | ||
112 | END | ||