From 0e846fe267834b315e4ae62ed5b1e2fc63f0fae0 Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:03:45 +0200 Subject: [PATCH] fix: sudo --- scripts/installscripts/install-jukebox.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/installscripts/install-jukebox.sh b/scripts/installscripts/install-jukebox.sh index a9581ff53..1f83da198 100644 --- a/scripts/installscripts/install-jukebox.sh +++ b/scripts/installscripts/install-jukebox.sh @@ -826,7 +826,7 @@ web_server_config() { sudo chmod 644 "${php_ini}" # SUDO users (adding web server here) - echo "www-data ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/www-data + sudo echo "www-data ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/www-data } # Reads a textfile and pipes all lines as args to the given command. @@ -967,7 +967,7 @@ install_main() { ${pip_install} -r "${jukebox_dir}"/requirements-spotify.txt local python_dist_path=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])') - echo "mopidy ALL=NOPASSWD: ${python_dist_path}/mopidy_iris/system.sh" > /etc/sudoers.d/mopidy + sudo echo "mopidy ALL=NOPASSWD: ${python_dist_path}/mopidy_iris/system.sh" > /etc/sudoers.d/mopidy fi # Install more required packages