Ticket #1039 fix worong permissions in ogrepo-api service

pull/3/head
Nicolas Arenas 2024-11-13 13:21:50 +01:00
parent 7a7565de7f
commit 5b10fdf1bd
2 changed files with 3 additions and 2 deletions

View File

@ -3,8 +3,8 @@ Description=Gunicorn instance to serve repo_api
After=network.target
[Service]
User=ogrepository
Group=ogrepository
User=%%OGREPOSITORY_USER%%
Group=%%OGREPOSITORY_USER%%
WorkingDirectory=/opt/opengnsys/ogrepository/api
ExecStart=/usr/bin/gunicorn -w 4 -b 0.0.0.0:8006 repo_api:app

View File

@ -70,6 +70,7 @@ install_external_packages() {
install_ogrepo-api_service() {
cp -r $DOWNLOAD_DIR/installer/files/ogrepo-api.service /etc/systemd/system/ogrepo-api.service
sed -i "s/%%OGREPOSITORY_USER%%/$OGUSER/g" /etc/systemd/system/ogrepo-api.service
systemctl enable --now ogrepo-api
}