Skip to content

Commit

Permalink
remove an old workaround, should not be needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
duritong committed Jan 19, 2017
1 parent 5ab2bbb commit 423cd77
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions files/scripts/upgrade_wordpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ function wp_backup {
if [ $? -gt 0 ]; then
echo "Installing backup plugin"
run_wp_hard "plugin install backupwordpress"
# fixing backupplugin
# https://github.com/humanmade/backupwordpress/pull/1026
plugin_file="${wwwdir}/wp-content/plugins/backupwordpress/classes/class-backupwordpress-wp-cli-command.php"
if [ -f $plugin_file ]; then
run "grep -qP 'new Excludes' ${plugin_file} && sed -i \"s/set_excludes( .*/set_excludes( new Excludes( \\\$assoc_args['excludes'] ) );/\" ${plugin_file}"
fi
fi
activate_backup=0
run_wp "plugin list" | grep -q 'backupwordpress' | grep -q 'active' > /dev/null
Expand Down

0 comments on commit 423cd77

Please sign in to comment.