#!/bin/bash HTML_ROOT=/var/www/html # Run updater if we have an existing install if [[ -e "$HTML_ROOT/LocalSettings.php" ]]; then cd "$HTML_ROOT/maintenance" php update.php fi apache2-foreground