#!/bin/bash

wp_dir=/var/www/html/wordpress

cd ${wp_dir}
if [ -f /usr/bin/wp ]
then
    /usr/bin/wp core update-db --network --allow-root
fi
