mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 12:15:15 +00:00
26 lines
699 B
Bash
Executable file
26 lines
699 B
Bash
Executable file
#!/usr/bin/env bash
|
|
if [ ! -d .git ]; then
|
|
echo Unable to update `pwd`
|
|
exit
|
|
fi
|
|
git pull
|
|
# use composer install so that the current composer.lock
|
|
# is always used. If this was an update command, it would
|
|
# update composer.lock and create an unintentional local file
|
|
# modification. Set COMPOSER_ALLOW_SUPERUSER to prevent composer
|
|
# from going interactive if this script is run from cron by the
|
|
# site admin.
|
|
if [ `id -u` -eq 0 ]; then
|
|
export COMPOSER_ALLOW_SUPERUSER=1
|
|
fi
|
|
composer install --no-dev
|
|
if [ -d extend ] ; then
|
|
for a in theme addon widget ; do
|
|
if [ -d extend/$a ]; then
|
|
for b in `ls extend/$a` ; do
|
|
echo Updating $b
|
|
'util/update_'$a'_repo' $b
|
|
done
|
|
fi
|
|
done
|
|
fi
|