mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-09-04 13:18:48 +08:00
script to update mounted dev sources
This commit is contained in:
parent
cf2dc3b34d
commit
a7e184e69b
2 changed files with 13 additions and 2 deletions
12
sync_sources.sh
Normal file
12
sync_sources.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue