mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-09-03 22:53:56 +08:00
12 lines
375 B
Bash
12 lines
375 B
Bash
#!/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)
|
|
cp -r /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
|
|
|