2017-02-15 07:23:58 +13:00
|
|
|
#!/bin/bash
|
2017-02-20 11:57:08 +13:00
|
|
|
echo 'syncing source files to plugin directory'
|
2017-02-15 07:23:58 +13:00
|
|
|
|
|
|
|
# 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-20 11:57:08 +13:00
|
|
|
# ignore file ownership as we modify this post sync
|
|
|
|
rsync -av --no-owner --delete /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
|
|
|
|
|