Skip to content

Commit 101395a

Browse files
authored
Make sure we test for the right venv binary
1 parent e6eb68d commit 101395a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function log_quit {
2929
log "#### Setup grommunio_exporter"
3030

3131
log "Installing Python 3.11 if not present"
32-
zypper install -y python311 || log_quit "Cannot install python 3.11" "ERROR"
32+
zypper install -y python311
3333

3434
log "Setting up venv environment"
3535
python3.11 -m venv /usr/local/grommunio_exporter_venv || log_quit "Cannot create python venv" "ERROR"
@@ -43,7 +43,7 @@ cat << 'EOF' > /etc/systemd/system/grommunio_exporter.service
4343
Description=Grommunio Exporter
4444
After=syslog.target
4545
After=network.target
46-
AssertFileIsExecutable=/usr/bin/grommunio_exporter
46+
AssertFileIsExecutable=/usr/local/grommunio_exporter_venv/bin/grommunio_exporter
4747
4848
[Service]
4949
Type=simple

0 commit comments

Comments
 (0)