X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=bullseye%2Fsetup_scripts%2Fsetup_microblogpub.sh;h=ce0d7d1c6c1bbb8db811cc34625754b18cec43be;hb=d6379f4807bc79b8f4847638dfb596302c444155;hp=67c7262822c29cbe97f02abdeea716dd7203a40e;hpb=6797c7010cdf48a198f14463fe33578733e63a7b;p=config diff --git a/bullseye/setup_scripts/setup_microblogpub.sh b/bullseye/setup_scripts/setup_microblogpub.sh index 67c7262..ce0d7d1 100755 --- 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. -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