home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix upgrade-broken ledger tab completion.
[config]
/
bullseye
/
setup_scripts
/
setup_microblogpub.sh
diff --git
a/bullseye/setup_scripts/setup_microblogpub.sh
b/bullseye/setup_scripts/setup_microblogpub.sh
index 67c7262822c29cbe97f02abdeea716dd7203a40e..d0f68c938fca59b0dbc4f72ae9655e73cd28edea 100755
(executable)
--- a/
bullseye/setup_scripts/setup_microblogpub.sh
+++ b/
bullseye/setup_scripts/setup_microblogpub.sh
@@
-41,7
+41,7
@@
su -lPc "cd testing.microblog.pub && poetry run inv configuration-wizard" - plom
su -lPc "cd testing.microblog.pub && poetry run inv migrate-db" - plom
# Set up microblog.pub daemon service.
su -lPc "cd testing.microblog.pub && poetry run inv migrate-db" - plom
# Set up microblog.pub daemon service.
-venv_dir_path=$( su -lPc "cd testing.microblog.pub && poetry env info
" - plom | grep 'Path' | head -1 | awk '{print $2}'
)
+venv_dir_path=$( su -lPc "cd testing.microblog.pub && poetry env info
--path" - plom
)
venv_dir=$(basename ${venv_dir_path})
sed -i "s/REPLACE_venv_dir_ECALPER/${venv_dir}/g" /etc/systemd/system/microblogpub.service
systemctl enable microblogpub.service
venv_dir=$(basename ${venv_dir_path})
sed -i "s/REPLACE_venv_dir_ECALPER/${venv_dir}/g" /etc/systemd/system/microblogpub.service
systemctl enable microblogpub.service
@@
-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
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