mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-08-30 13:43:54 +08:00
14 lines
554 B
Bash
Executable file
14 lines
554 B
Bash
Executable file
#!/bin/bash
|
|
echo 'syncing source files to plugin directory'
|
|
|
|
# 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)
|
|
# ignore file ownership as we modify this post sync; ignore git folder
|
|
rsync -av --no-owner --exclude '.git/' --exclude '*.swp' --delete /app/ wp-content/plugins/wordpress-static-html-output/
|
|
|
|
# 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
|
|
|