From a41ebbc11aac1578154642144b2ab8f7c9847424 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Wed, 16 Jun 2021 13:57:18 +0200 Subject: [PATCH] Debian and /usr/lib/python3: fix path Debian based systems (including Ubuntu and other derivatives) always use /usr/lib/python3 (and not /usr/lib/python3.x), therefore, we shouldn't use a variable ${pyver3} instead of the 3. Change-Id: I062ade8509d1e3309f90d473bb95fbeebc01cdd0 --- manifests/params.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 4a109c5..93b29f2 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -31,7 +31,7 @@ class watcher::params { if ($::os_package_type == 'debian') { $watcher_wsgi_script_source = '/usr/share/watcher-common/app.wsgi' } else { - $watcher_wsgi_script_source = "/usr/lib/python${pyver3}/dist-packages/watcher/api/app.wsgi" + $watcher_wsgi_script_source = '/usr/lib/python3/dist-packages/watcher/api/app.wsgi' } $watcher_wsgi_script_path = '/usr/lib/cgi-bin/watcher' }