File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,11 @@ if [ ! -f /usr/share/nginx/www/wp-config.php ]; then
30
30
unzip -o nginx-helper.* .zip -d /usr/share/nginx/www/wp-content/plugins
31
31
chown -R www-data:www-data /usr/share/nginx/www/wp-content/plugins/nginx-helper
32
32
33
- # Activate nginx plugin and set up pretty permalink structure once logged in
33
+ # Activate nginx plugin once logged in
34
34
cat << ENDL >> /usr/share/nginx/www/wp-config.php
35
35
\$ plugins = get_option( 'active_plugins' );
36
36
if ( count( \$ plugins ) === 0 ) {
37
37
require_once(ABSPATH .'/wp-admin/includes/plugin.php');
38
- \$ wp_rewrite->set_permalink_structure( '/%postname%/' );
39
38
\$ pluginsToActivate = array( 'nginx-helper/nginx-helper.php' );
40
39
foreach ( \$ pluginsToActivate as \$ plugin ) {
41
40
if ( !in_array( \$ plugin, \$ plugins ) ) {
You can’t perform that action at this time.
0 commit comments