summaryrefslogtreecommitdiff
path: root/sync.sh
blob: 8f51b691dda7d1784d46a7d98805a370a5972945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Helper script to run inside the qemu image to sync its
# deployed code with that used in this repository.
# Assumes that /root/woocommerce-taler has THIS Git
# repository checked out.
cd ~/woocommerce-taler
git pull -4
cd /var/www/wordpress/wp-content/plugins
rm -r GNU-Taler-Payment-Gateway daggerhart-openid-connect-generic
cp -r /root/woocommerce-taler/plugin/GNU-Taler-Payment-Gateway/ .
cp -r /root/woocommerce-taler/daggerhart-openid-connect-generic/ .
mkdir GNU-Taler-Payment-Gateway/log
chown -R www-data:www-data GNU-Taler-Payment-Gateway/
cd