From a1ab7955439e382b61f94100a6bcdf2543407ed7 Mon Sep 17 00:00:00 2001 From: Dmytro Danylevskyi Date: Wed, 30 May 2012 21:09:48 +0300 Subject: [PATCH] settings proper permissions on l10n_update translations dir. #1 --- deployment.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deployment.sh b/deployment.sh index 314bfe6..a07fd0a 100755 --- a/deployment.sh +++ b/deployment.sh @@ -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