From 0eca1394c06e81a71643c507799c046b12ac393e Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 11 Feb 2026 13:23:51 -0800 Subject: [PATCH] Vagrantfile: Drop unnecessary sudo configuration for actions - Actions have been completed removed due to implementation of privileged daemon. Tests: - None Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- .vagrant-scripts/plinth-user-permissions.py | 16 ---------------- Vagrantfile | 6 ------ 2 files changed, 22 deletions(-) delete mode 100755 .vagrant-scripts/plinth-user-permissions.py diff --git a/.vagrant-scripts/plinth-user-permissions.py b/.vagrant-scripts/plinth-user-permissions.py deleted file mode 100755 index 796b84648..000000000 --- a/.vagrant-scripts/plinth-user-permissions.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/python3 -# -*- mode: python -*- -# SPDX-License-Identifier: AGPL-3.0-or-later -"""Set required permissions for user "plinth" to run plinth in dev setup.""" - -import pathlib - -content = ''' -Cmnd_Alias FREEDOMBOX_ACTION_DEV = /usr/share/plinth/actions/actions, /freedombox/actions/actions -Defaults!FREEDOMBOX_ACTION_DEV closefrom_override -plinth ALL=(ALL:ALL) NOPASSWD:SETENV : FREEDOMBOX_ACTION_DEV -fbx ALL=(ALL:ALL) NOPASSWD : ALL -''' - -sudoers_file = pathlib.Path('/etc/sudoers.d/01-freedombox-development') -sudoers_file.write_text(content) diff --git a/Vagrantfile b/Vagrantfile index 366097b57..c78a26ab3 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -34,11 +34,5 @@ $ vagrant ssh $ sudo freedombox-logs " - config.trigger.after [:up, :resume, :reload] do |trigger| - trigger.info = "Set plinth user permissions for development environment" - trigger.run_remote = { - path: ".vagrant-scripts/plinth-user-permissions.py" - } - end config.vm.boot_timeout=1200 end