From 8c0e6071857c6db3e3cfa89ec5e53bd06cb6f426 Mon Sep 17 00:00:00 2001 From: Kyle Finley Date: Fri, 21 Jun 2024 13:21:55 -0400 Subject: [PATCH] fix file permissions --- Makefile | 4 ++++ vscode/config.yaml | 2 +- vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/finish | 0 vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run | 0 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-code-server/run | 0 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run | 0 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mysql/run | 0 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-ssh/run | 0 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-user/run | 0 vscode/rootfs/etc/s6-overlay/s6-rc.d/sshd/finish | 0 vscode/rootfs/etc/s6-overlay/s6-rc.d/sshd/run | 0 vscode/rootfs/usr/local/bin/code | 0 vscode/rootfs/usr/local/bin/reboot | 0 vscode/rootfs/usr/local/bin/shutdown | 0 14 files changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/finish mode change 100644 => 100755 vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run mode change 100644 => 100755 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-code-server/run mode change 100644 => 100755 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run mode change 100644 => 100755 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mysql/run mode change 100644 => 100755 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-ssh/run mode change 100644 => 100755 vscode/rootfs/etc/s6-overlay/s6-rc.d/init-user/run mode change 100644 => 100755 vscode/rootfs/etc/s6-overlay/s6-rc.d/sshd/finish mode change 100644 => 100755 vscode/rootfs/etc/s6-overlay/s6-rc.d/sshd/run mode change 100644 => 100755 vscode/rootfs/usr/local/bin/code mode change 100644 => 100755 vscode/rootfs/usr/local/bin/reboot mode change 100644 => 100755 vscode/rootfs/usr/local/bin/shutdown diff --git a/Makefile b/Makefile index 6c8e182..a156906 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,10 @@ lint-shellcheck: ## lint shell scripts using shellcheck bash ./tests/shellcheck.sh && \ echo "" +permissions: ## set script permissions + @find ./vscode/rootfs/etc/s6-overlay/s6-rc.d -type f \( -name run -or -name finish \) -prune -exec chmod +x {} \; + @find ./vscode/rootfs/usr/local/bin -type f -prune -exec chmod +x {} \; + run-pre-commit: ## run pre-commit for all files @poetry run pre-commit run $(PRE_COMMIT_OPTS) \ --all-files \ diff --git a/vscode/config.yaml b/vscode/config.yaml index ed63a52..227d4bc 100644 --- a/vscode/config.yaml +++ b/vscode/config.yaml @@ -76,4 +76,4 @@ startup: services uart: true url: https://github.com/finleyfamily/hass-addon-vscode usb: true -version: 0.0.0-dev2 +version: 0.0.0-dev3 diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/finish b/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/finish old mode 100644 new mode 100755 diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run old mode 100644 new mode 100755 diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-code-server/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-code-server/run old mode 100644 new mode 100755 diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run old mode 100644 new mode 100755 diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mysql/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mysql/run old mode 100644 new mode 100755 diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-ssh/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-ssh/run old mode 100644 new mode 100755 diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-user/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-user/run old mode 100644 new mode 100755 diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/sshd/finish b/vscode/rootfs/etc/s6-overlay/s6-rc.d/sshd/finish old mode 100644 new mode 100755 diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/sshd/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/sshd/run old mode 100644 new mode 100755 diff --git a/vscode/rootfs/usr/local/bin/code b/vscode/rootfs/usr/local/bin/code old mode 100644 new mode 100755 diff --git a/vscode/rootfs/usr/local/bin/reboot b/vscode/rootfs/usr/local/bin/reboot old mode 100644 new mode 100755 diff --git a/vscode/rootfs/usr/local/bin/shutdown b/vscode/rootfs/usr/local/bin/shutdown old mode 100644 new mode 100755