Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Commit

Permalink
settings proper permissions on l10n_update translations dir. #1
Browse files Browse the repository at this point in the history
  • Loading branch information
danylevskyi committed May 30, 2012
1 parent 341481d commit a1ab795
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ $DRUSH site-install $PROFILE --yes --site-name="$SITE_NAME" --site-mail="$SITE_M

# update translations
if [[ -n $L10N_UPDATE ]]; then
# set proper permissions on translations dir
var="l10n_update_download_store"
$DRUSH vget $var --root="$target_dir" &> /dev/null
if [[ "$?" -eq 0 ]]; then
set `$DRUSH vget $var --root="$target_dir"`
l10n_update_dir=`echo "$2" | sed 's/"//g'`
echo "Changing file permissions for l10n_update translations directory..."
chmod -Rf 775 $target_dir/$l10n_update_dir
fi
echo "Updating translations..."
$DRUSH l10n-update --root="$target_dir"
fi
Expand Down

0 comments on commit a1ab795

Please sign in to comment.