Skip to content

Commit

Permalink
fix: sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller authored Apr 5, 2024
1 parent fdac8f8 commit 0e846fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/installscripts/install-jukebox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0e846fe

Please sign in to comment.