You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
620 B
18 lines
620 B
#!/bin/bash
|
|
set -e
|
|
|
|
# make sure odoo has a user.name configured, as merges would not succeed otherwise
|
|
# (even if GIT_AUTHOR_NAME and EMAIL are set and should be used, it seems gitaggregate is not passing them to git)
|
|
su --shell="$SHELL" odoo -c 'git config user.name 1>/dev/null || git config --global user.name "'"$GIT_AUTHOR_NAME"'"'
|
|
|
|
# copy ssh directory to odoo user as well (gitaggregate may also be run as odoo user)
|
|
if [[ ! -e ~odoo/.ssh ]] ; then
|
|
cp -a /opt/odoo/custom/ssh ~odoo/.ssh
|
|
fi
|
|
|
|
if [ "$AGGREGATE" != true ]; then
|
|
log WARNING Not aggregating code repositories
|
|
exit 0
|
|
fi
|
|
|
|
exec autoaggregate
|