Ensure copy from installed WP package files doesn't zap existing files.

In particular, we were zapping plugins, uploads and themes. So the
whole site went blank.
This commit is contained in:
Jim Hague
2026-01-10 22:26:52 +00:00
parent 037d84324b
commit 1cd4c7bb66
6 changed files with 9 additions and 2 deletions
+3
View File
@@ -1,2 +1,5 @@
restic_password:
social: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
scabbers: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
hedwig: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
cloud: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
+1
View File
@@ -26,3 +26,4 @@ base:
- secrets/mariadb
- secrets/wordpress
- nextcloud/cloud
- secrets/restic
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
mysqldump --all-databases > /root/mysql.sql
exec /usr/bin/restic --password-file /etc/restic.pass --repo /var/local/backup/restic backup /etc --exclude="*.o" /etc /root /home /var/mail /usr/local /var/lib/wordpress /srv
+1
View File
@@ -1,2 +1,3 @@
#!/bin/sh
mysqldump --all-databases > /root/mysql.sql
exec /usr/bin/restic --password-file /etc/restic.pass --repo /var/local/backup/restic backup /etc --exclude="*.o" /etc /root /home /var/mail /usr/local /var/lib/wordpress /srv
+1
View File
@@ -58,6 +58,7 @@ base:
- mariadb
- apache
- php_fpm/trixie
- backup/restic
- cloud
- villagehall_website
-2
View File
@@ -20,8 +20,6 @@ villagehall_framework_package_content:
- name: /var/lib/wordpress/wp-content-villagehall
- source: /var/lib/wordpress/wp-content
- makedirs: True
- force: True
- preserve: True
- user: www-data
- group: www-data
- dir_mode: 755