#!/usr/bin/env bash

. .config.sh

aa_lib_echo "Exporting current config.json"

ssh -t $SSHHOST <<EOF

cd $WWWROOT
$PHPBIN ./bin/console sw:theme:dump:configuration

EOF


aa_lib_echo "Trying to get Current Config"
mkdir -p ./web/cache
cd ./web/cache

sftp $SFTPHOST <<EOF
 cd $WWWROOT
 cd ./web/cache
 get config_1.json
EOF
#curl  $WWWHOST/web/cache/config_1.json > config_1.json
