Commit 5928b71e authored by bgm's avatar bgm Committed by GitLab Runner

bin/compile-mo-files.sh: switching to gcloud storage (biryani is offline).

parent e28067fd
...@@ -65,7 +65,7 @@ else ...@@ -65,7 +65,7 @@ else
# check that we are running as the l10n user. # check that we are running as the l10n user.
user=`whoami` user=`whoami`
if [ "$user" = "l10n" ]; then if [ "$user" = "gitlab-runner" ]; then
for i in $(cat conf/distributed_languages.txt); do for i in $(cat conf/distributed_languages.txt); do
mkdir -p workdir/l10n/$i/LC_MESSAGES mkdir -p workdir/l10n/$i/LC_MESSAGES
cp workdir/mo/$i/civicrm.mo workdir/l10n/$i/LC_MESSAGES/ cp workdir/mo/$i/civicrm.mo workdir/l10n/$i/LC_MESSAGES/
...@@ -75,12 +75,12 @@ else ...@@ -75,12 +75,12 @@ else
tar cfz civicrm-l10n-daily.tar.gz l10n tar cfz civicrm-l10n-daily.tar.gz l10n
md5sum civicrm-l10n-daily.tar.gz > civicrm-l10n-daily.tar.gz.MD5SUMS md5sum civicrm-l10n-daily.tar.gz > civicrm-l10n-daily.tar.gz.MD5SUMS
echo -n "Rsync civicrm-l10n-daily.tar.gz to download.civicrm.org ... " echo -n "gsutil rsync civicrm-l10n-daily.tar.gz to gcloud bucket for download.civicrm.org ... "
cp civicrm-l10n-daily.tar.gz /var/www/download.civicrm.org/public/civicrm-l10n-core/archives/ ~/bin/gsutil/gsutil rsync civicrm-l10n-daily.tar.gz gs://civicrm/civicrm-l10n-core/archives/
cp civicrm-l10n-daily.tar.gz.MD5SUMS /var/www/download.civicrm.org/public/civicrm-l10n-core/archives/ ~/bin/gsutil/gsutil rsync civicrm-l10n-daily.tar.gz.MD5SUMS gs://civicrm/civicrm-l10n-core/archives/
echo -n "Rsync all .mo files to download.civicrm.org ... " echo -n "gsutil rsync all .mo files to gcloud bucket for download.civicrm.org ... "
rsync --delete -ra mo /var/www/download.civicrm.org/public/civicrm-l10n-core/ ~/bin/gsutil/gsutil rsync -r ./mo gs://civicrm/civicrm-l10n-core/mo/
echo "done!" echo "done!"
rm civicrm-l10n-daily.tar.gz* rm civicrm-l10n-daily.tar.gz*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment