databasus, domain-monitor, poznote: chown after restore_backup so restored data keeps its owner

This commit is contained in:
MickLesk
2026-09-18 11:44:58 +02:00
parent 78fbbe78ed
commit f545891697
3 changed files with 3 additions and 3 deletions

View File

@@ -87,10 +87,10 @@ function update_script() {
mkdir -p /opt/databasus/ui/build
cp -r /opt/databasus/frontend/dist/* /opt/databasus/ui/build/
cp -r /opt/databasus/backend/migrations /opt/databasus/
chown -R postgres:postgres /opt/databasus
msg_ok "Updated Databasus"
restore_backup
chown -R postgres:postgres /opt/databasus
if ! grep -q "EnvironmentFile=/.env" /etc/systemd/system/databasus.service; then
msg_info "Updating Service"

View File

@@ -53,10 +53,10 @@ function update_script() {
msg_info "Updating Domain Monitor"
cd /opt/domain-monitor
$STD composer install
chown -R www-data:www-data /opt/domain-monitor
msg_ok "Updated Domain Monitor"
restore_backup
chown -R www-data:www-data /opt/domain-monitor
msg_info "Restarting Services"
systemctl start apache2

View File

@@ -44,10 +44,10 @@ function update_script() {
msg_info "Deploying New Version"
cp -r /opt/poznote/src/. /var/www/html/
chown -R www-data:www-data /var/www/html
msg_ok "Deployed New Version"
restore_backup
chown -R www-data:www-data /var/www/html
msg_info "Running Poznote Initialization"
POZNOTE_INIT=/opt/poznote/docker/init.sh