X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=bullseye%2Fsetup_scripts%2Fsetup_microblogpub.sh;h=d0f68c938fca59b0dbc4f72ae9655e73cd28edea;hb=HEAD;hp=ce0d7d1c6c1bbb8db811cc34625754b18cec43be;hpb=d6379f4807bc79b8f4847638dfb596302c444155;p=config diff --git a/bullseye/setup_scripts/setup_microblogpub.sh b/bullseye/setup_scripts/setup_microblogpub.sh index ce0d7d1..d0f68c9 100755 --- a/bullseye/setup_scripts/setup_microblogpub.sh +++ b/bullseye/setup_scripts/setup_microblogpub.sh @@ -51,3 +51,8 @@ service microblogpub start sed -i "s/REPLACE_fqdn_ECALPER/${domain}/g" /etc/nginx/sites-available/microblogpub.nginx ln -s /etc/nginx/sites-available/microblogpub.nginx /etc/nginx/sites-enabled/microblogpub.nginx service nginx restart + +# Setup regular DB pruning +cp "${config_tree_prefix}/other_files/prune_microblog.sh" /home/plom/ +systemctl enable microblogpub_prune.timer +systemctl start microblogpub_prune.timer