File: 0011-fix_interpreters.patch

package info (click to toggle)
cfengine3 3.21.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 37,272 kB
  • sloc: ansic: 159,067; sh: 10,038; python: 2,790; makefile: 1,667; lex: 784; yacc: 630; perl: 211; pascal: 157; awk: 58; xml: 21; sed: 13
file content (37 lines) | stat: -rw-r--r-- 1,474 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Update interpreter paths and file names
Author: Hugh McMaster <hugh.mcmaster@outlook.com>
Forwarded: no, not-needed
Last-Update: 2022-09-09

--- a/masterfiles/cfe_internal/core/watchdog/templates/watchdog.mustache
+++ b/masterfiles/cfe_internal/core/watchdog/templates/watchdog.mustache
@@ -1,4 +1,4 @@
-#!/usr/bin/sh
+#!/bin/sh
 
 # Watchdog events are logged here.
 PIDFILE="/var/cfengine/watchdog.pid"
--- a/masterfiles/modules/packages/vendored/apt_get.mustache
+++ b/masterfiles/modules/packages/vendored/apt_get.mustache
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # Note that the shebang above is ignored when run in policy
 # See lib/packages.cf `package_module apt_get` use of the
 # `interpreter` attribute to use cfengine-selected-python.
--- a/masterfiles/modules/packages/vendored/yum.mustache
+++ b/masterfiles/modules/packages/vendored/yum.mustache
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # Note that the shebang above is ignored when run in policy
 # See lib/packages.cf `package_module yum` use of the
 # `interpreter` attribute to use cfengine-selected-python.
--- a/masterfiles/modules/packages/vendored/zypper.mustache
+++ b/masterfiles/modules/packages/vendored/zypper.mustache
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # Note that the shebang above is ignored when run in policy
 # See lib/packages.cf `package_module zypper` use of the
 # `interpreter` attribute to use cfengine-selected-python.