Skip to content

Commit

Permalink
Fixing issues:
Browse files Browse the repository at this point in the history
MiczFlor#1106: Skip WINS configuration in install script when installing Samba
MiczFlor#1104: Media directory is not adjusted in Mopidy, when changed in install script
MiczFlor#1096: gpio_settings.ini moved without notice or doc update
  • Loading branch information
Huseriato authored and Huseriato committed Oct 21, 2020
1 parent b3c0938 commit 1d97ff6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/gpio_control/gpio_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_all_devices(config):
logger.setLevel('INFO')

config = configparser.ConfigParser(inline_comment_prefixes=";")
config_path = os.path.expanduser('~/.config/phoniebox/gpio_settings.ini')
config_path = os.path.expanduser('../../settings/gpio_settings.ini')
config.read(config_path)

devices = get_all_devices(config)
Expand Down
2 changes: 1 addition & 1 deletion misc/sampleconfigs/mopidy-etc.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ debug_file = /var/log/mopidy/mopidy-debug.log

[local]
enabled = true
media_dir = /home/pi/RPi-Jukebox-RFID/shared/audiofolders
media_dir = %media_dir%
excluded_file_extensions =
.conf
.jpg
Expand Down
2 changes: 1 addition & 1 deletion misc/sampleconfigs/mopidy.sample
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ metadata_timeout = 1
[local]
enabled = true
#library = json
media_dir = /home/pi/RPi-Jukebox-RFID/shared/audiofolders
media_dir = %media_dir%
#scan_timeout = 1000
#scan_flush_threshold = 100
#scan_follow_symlinks = false
Expand Down
7 changes: 5 additions & 2 deletions scripts/installscripts/buster-install-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -926,10 +926,12 @@ install_main() {
sudo sed -i 's/%spotify_password%/'"$SPOTIpass"'/' "${etc_mopidy_conf}"
sudo sed -i 's/%spotify_client_id%/'"$SPOTIclientid"'/' "${etc_mopidy_conf}"
sudo sed -i 's/%spotify_client_secret%/'"$SPOTIclientsecret"'/' "${etc_mopidy_conf}"
sudo sed -i 's=%media_dir%='"$DIRaudioFolders"'=' "${etc_mopidy_conf}"
sed -i 's/%spotify_username%/'"$SPOTIuser"'/' "${mopidy_conf}"
sed -i 's/%spotify_password%/'"$SPOTIpass"'/' "${mopidy_conf}"
sed -i 's/%spotify_client_id%/'"$SPOTIclientid"'/' "${mopidy_conf}"
sed -i 's/%spotify_client_secret%/'"$SPOTIclientsecret"'/' "${mopidy_conf}"
sed -i 's=%media_dir%='"$DIRaudioFolders"'=' "${mopidy_conf}"
fi

# GPIO-Control
Expand Down Expand Up @@ -1214,6 +1216,9 @@ finish_installation() {
# Main #
########
main() {
# Skip interactive Samba WINS config dialog
echo "samba-common samba-common/dhcp boolean false" | sudo debconf-set-selections

if [[ ${INTERACTIVE} == "true" ]]; then
welcome
#reset_install_config_file
Expand All @@ -1227,8 +1232,6 @@ main() {
else
echo "Non-interactive installation!"
check_config_file
# Skip interactive Samba WINS config dialog
echo "samba-common samba-common/dhcp boolean false" | sudo debconf-set-selections
fi
install_main "${JUKEBOX_HOME_DIR}"
wifi_settings "${JUKEBOX_HOME_DIR}/misc/sampleconfigs" "/etc/dhcpcd.conf" "/etc/wpa_supplicant/wpa_supplicant.conf"
Expand Down

0 comments on commit 1d97ff6

Please sign in to comment.