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

This commit is contained in:
CanbiZ (MickLesk)
2026-09-18 15:28:03 +02:00
committed by GitHub
parent c81d721040
commit 60fda0a57b
3 changed files with 3 additions and 3 deletions
+1 -1
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"
+1 -1
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
+1 -1
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