]> apps.delaporte.us Git - matrix-cadbury.git/commitdiff
Tweaks
authorEdward Delaporte <edward@delaporte.us>
Wed, 8 Apr 2026 01:53:12 +0000 (20:53 -0500)
committerEdward Delaporte <edward@delaporte.us>
Wed, 8 Apr 2026 01:53:12 +0000 (20:53 -0500)
service/backup.sh
service/check_db.sh

index 48d01c3d4667378785de409fec1af53113585b08..37dae613bc7a145171fcb6a5103be880a97fbb9a 100755 (executable)
@@ -1,9 +1,11 @@
 # Avoid corruption by stopping Cadbury
 systemctl stop cadbury
 INSTALL_DIR=/etc/matrix-cadbury
 # Avoid corruption by stopping Cadbury
 systemctl stop cadbury
 INSTALL_DIR=/etc/matrix-cadbury
+
 # Create backup files while Cadbuary is paused
 mkdir -p $INSTALL_DIR/backups
 cp $INSTALL_DIR/*.db $INSTALL_DIR/backups
 # Create backup files while Cadbuary is paused
 mkdir -p $INSTALL_DIR/backups
 cp $INSTALL_DIR/*.db $INSTALL_DIR/backups
+
 # Resume Cadbury
 systemctl start cadbury
 
 # Resume Cadbury
 systemctl start cadbury
 
index 9085ec476ef3de764ccbd2f5a3a517c012081948..c5dc50be93134dc257f4249c163bd0caf9f60c44 100755 (executable)
@@ -1,3 +1,3 @@
 echo "Checking DB file $1"
 echo "PRAGMA quick_check;" | sqlite3 $1
 echo "Checking DB file $1"
 echo "PRAGMA quick_check;" | sqlite3 $1
-ls -h $1
+ls -l $1