summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-18 09:11:50 +0200
committerChristian Breunig <christian@breunig.cc>2026-10-24 09:04:43 +0200
commited8f5cf44b2e6002c849fcdabe7373d8d17dfdf4 (patch)
treebc0be71628a3c3288381d3ff4d15506e5f13738c /Makefile
parent08e279b0894701570efc1ccdab38a917373ed8f4 (diff)
downloadvyos-1x-ed8f5cf44b2e6002c849fcdabe7373d8d17dfdf4.tar.gz
vyos-1x-ed8f5cf44b2e6002c849fcdabe7373d8d17dfdf4.zip
T9477: remove no longer needed executable bit from migration scripts
Migration scripts are loaded as modules by the migration runner and are no longer executed individually. Drop the executable bit and make the build abort if any migration script is executable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 588ba91ad..8dbb9ae3d 100644
--- a/Makefile
+++ b/Makefile
@@ -109,16 +109,10 @@ test: generate-configd-include-json
set -e; python3 -m compileall -q -x '/vmware-tools/scripts/' .
PYTHONPATH=python/ python3 -m nose2 -v
-.PHONY: check_migration_scripts_executable
-.ONESHELL:
-check_migration_scripts_executable:
- @echo "Checking if migration scripts have executable bit set..."
- find src/migration-scripts -type f -not -executable -print -exec false {} + || sh -c 'echo "Found files that are not executable! Add permissions." && exit 1'
-
.PHONY: check_scripts_not_executable
check_scripts_not_executable:
- @echo "Checking that conf_mode scripts have no executable bit set..."
- @find src/conf_mode -type f -perm /111 -print -exec false {} + || sh -c 'echo "Found executable files! Remove executable bit." && exit 1'
+ @echo "Checking that conf_mode and migration scripts have no executable bit set..."
+ @find src/conf_mode src/migration-scripts -type f -perm /111 -print -exec false {} + || sh -c 'echo "Found executable files! Remove executable bit." && exit 1'
.PHONY: pylint
pylint: interface_definitions