wisski-cloud-distillery/factory/update.sh
2020-06-01 21:47:40 +02:00

14 lines
No EOL
336 B
Bash

#!/bin/bash
set -e
# read the lib/shared.sh and lib/slug.sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR"
source "$DIR/lib/lib.sh"
require_slug_argument
# TODO: Figure out if this is enough.
echo " => Running 'composer update'"
cd "$COMPOSER_DIR"
drupal_sites_permission_workaround
composer update