X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=bullseye%2Fsetup_scripts%2Fsetup_microblogpub.sh;h=d0f68c938fca59b0dbc4f72ae9655e73cd28edea;hb=8a0ed8264d1b884c46dfa1fb5a5862bac6e1aceb;hp=ce0d7d1c6c1bbb8db811cc34625754b18cec43be;hpb=5ac3429d9101c2aef075526cb2bff6ecea283862;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