home · contact · privacy
Fix microblog.pub setup.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 3 Jan 2023 00:08:30 +0000 (01:08 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 3 Jan 2023 00:08:30 +0000 (01:08 +0100)
bullseye/etc_files/microblogpub/etc/systemd/system/microblogpub.service
bullseye/setup_scripts/setup_microblogpub.sh

index 441129d0a9b11f6c8c15280c0e8cbeaa7c4d63bc..966e58c135e0276c0d76337485696e6565b50884 100644 (file)
@@ -5,7 +5,7 @@ Description=microblog.pub
 Type=simple
 User=plom
 WorkingDirectory=/home/plom/testing.microblog.pub/
-ExecStart=/bin/sh -c 'poetry run supervisord -c misc/supervisord.conf -n'
+ExecStart=/bin/sh -c '/home/plom/.local/bin/poetry run supervisord -c misc/supervisord.conf -n'
 Environment=VENV_DIR=/home/plom/.cache/pypoetry/virtualenvs/REPLACE_venv_dir_ECALPER
 Restart=always
 
index 67c7262822c29cbe97f02abdeea716dd7203a40e..ce0d7d1c6c1bbb8db811cc34625754b18cec43be 100755 (executable)
@@ -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