Don't try to mirror debian repos

This commit is contained in:
Bob Mottram 2016-01-27 14:42:13 +00:00
parent 5b1f985d55
commit 660503b43a
1 changed files with 23 additions and 21 deletions

View File

@ -156,6 +156,7 @@ function sync_trove_repos {
for line in "${REPOS[@]}"
do
repo_name=$(echo "$line" | awk -F '=' '{print $1}')
if [[ ${repo_name} != *".debian."* ]]; then
repo_url=$(echo "$line" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}')
trove_name=$(echo "$repo_name" | sed "s|_REPO||g" | awk '{print tolower($0)}')
if [[ $NEW_TROVE == 'yes' ]]; then
@ -181,6 +182,7 @@ function sync_trove_repos {
sshpass -p "$FRIENDS_TROVE_PASSWORD" git fetch -p origin
fi
fi
fi
done
chown -R trove:trove /home/trove
}