wp2static/sync_sources.sh

13 lines
375 B
Bash
Raw Normal View History

2017-02-15 07:23:58 +13:00
#!/bin/bash
# run wp-cli cmds from wp install path
cd /var/www/html
# copy plugin source files to WP path (else changing ownership will change on host)
2017-02-15 07:32:57 +13:00
cp -r /app/* wp-content/plugins/wordpress-static-html-output/
2017-02-15 07:23:58 +13:00
# www-data to own plugin src files
chown -R www-data:www-data wp-content/plugins/wordpress-static-html-output
chown -R www-data:www-data wp-content/uploads