Commit 55e894f3 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix specific deploy script

parent a231988b
#!/usr/bin/env bash
for d in prod/sag-001;
for d in sag-001;
do
scp $d/mappings/localTransforms.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/$d/config/localTransforms.yml;
scp $d/mappings/mapping.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/$d/config/mapping.yml;
scp $d/mappings/transform.xslt root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/$d/config/transform.xslt;
ssh root@mb-wf2.memobase.unibas.ch "mkdir -p /swissbib_index/mb_sftp/$d/config"
scp prod/$d/mappings/localTransforms.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/$d/config/localTransforms.yml;
scp prod/$d/mappings/mapping.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/$d/config/mapping.yml;
scp prod/$d/mappings/transform.xslt root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/$d/config/transform.xslt;
echo "Copied $d/mappings to $d/config"
sleep 10;
done
......
#!/usr/bin/env bash
for d in stage/sag-001;
for d in sag-001;
do
scp $d/mappings/localTransforms.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/stage/$d/config/localTransforms.yml;
scp $d/mappings/mapping.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/stage/$d/config/mapping.yml;
scp $d/mappings/transform.xslt root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/stage/$d/config/transform.xslt;
ssh root@mb-wf2.memobase.unibas.ch "mkdir -p /swissbib_index/mb_sftp/stage/$d/config"
scp stage/$d/mappings/localTransforms.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/stage/$d/config/localTransforms.yml;
scp stage/$d/mappings/mapping.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/stage/$d/config/mapping.yml;
scp stage/$d/mappings/transform.xslt root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/stage/$d/config/transform.xslt;
echo "Copied $d/mappings to $d/config"
sleep 10;
done
......
#!/usr/bin/env bash
for d in test/sag-001;
for d in sag-001;
do
scp $d/mappings/localTransforms.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/test/$d/config/localTransforms.yml;
scp $d/mappings/mapping.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/test/$d/config/mapping.yml;
scp $d/mappings/transform.xslt root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/test/$d/config/transform.xslt;
ssh root@mb-wf2.memobase.unibas.ch "mkdir -p /swissbib_index/mb_sftp/test/$d/config"
scp test/$d/mappings/localTransforms.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/test/$d/config/localTransforms.yml;
scp test/$d/mappings/mapping.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/test/$d/config/mapping.yml;
scp test/$d/mappings/transform.xslt root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/test/$d/config/transform.xslt;
echo "Copied $d/mappings to $d/config"
sleep 10;
done
......
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