From: Christian Heller Date: Fri, 24 Feb 2023 22:53:35 +0000 (+0100) Subject: Fix faulty filename as per systemd unit file reference. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/tasks?a=commitdiff_plain;h=93690d8d437b328fe568a5502239ab27ae60e974;p=config Fix faulty filename as per systemd unit file reference. --- diff --git a/bullseye/other_files/prune.sh b/bullseye/other_files/prune.sh new file mode 100644 index 0000000..8cfc385 --- /dev/null +++ b/bullseye/other_files/prune.sh @@ -0,0 +1,10 @@ +#!/bin/sh +set -e +set -x +service microblogpub stop +microblogdir=/home/plom/testing.microblog.pub +cd "${microblogdir}" +cp -r data/microblogpub.db data/microblogpub.db.bak.$(date +%a) +su -lc "cd ${microblogdir} && poetry run inv prune-old-data" - plom +service microblogpub start +echo "last microblog pruning at $(date)" >> /home/plom/prune_log.txt diff --git a/bullseye/other_files/prune_microblog.sh b/bullseye/other_files/prune_microblog.sh deleted file mode 100644 index 8cfc385..0000000 --- a/bullseye/other_files/prune_microblog.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -e -set -x -service microblogpub stop -microblogdir=/home/plom/testing.microblog.pub -cd "${microblogdir}" -cp -r data/microblogpub.db data/microblogpub.db.bak.$(date +%a) -su -lc "cd ${microblogdir} && poetry run inv prune-old-data" - plom -service microblogpub start -echo "last microblog pruning at $(date)" >> /home/plom/prune_log.txt