Skip to content

Commit

Permalink
Improve backup handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean28518 committed Mar 1, 2024
1 parent 00dc36e commit 8801615
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lac/unix/templates/unix/backup_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h4 align="center">Status</h4>
<div align="center"><a href="{% url "retry_backup" %}">Erneut versuchen</a></div>
{% elif backup_information.backup_status == "running" %}
<div align="center"><span style="color: green;" class="material-icons md-64">cloud_upload</span> </div>
<div align="center">Backup läuft...<br><small>Alle Dienste sind gerade abgeschaltet. Bei Bedarf können diese <a href="{% url "start_all_services" %}">hier</a> gestartet werden.</small></div>
<div align="center">Backup läuft...<br><small>Alle Dienste sind zu Beginn abgeschaltet. Bei Bedarf können diese <a href="{% url "start_all_services" %}">hier</a> gestartet werden.</small></div>
{% elif backup_information.backup_status == "recovery_running" %}
<div align="center"><span style="color: blue;" class="material-icons md-64">cloud_download</span> </div>
<div align="center">Wiederherstellung läuft</div>
Expand Down
5 changes: 3 additions & 2 deletions src/lac/unix/unix_scripts/maintenance/stop_services.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
systemctl stop docker
. umount_backups.sh

# Turn off maintenance mode of Nextcloud
if [ -f /var/www/nextcloud/occ ]; then
sudo -u www-data /usr/bin/php /var/www/nextcloud/occ maintenance:mode --on
fi
fi

systemctl stop docker

0 comments on commit 8801615

Please sign in to comment.