Skip to content

Commit

Permalink
update sunshine to 0.17 + keep config in .config folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Murazaki committed Jun 1, 2023
1 parent d2850aa commit 2f34427
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions images/sunshine/configs/sunshine.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ min_log_level = info
# origin_pin_allowed = lan

# The file where current state of Sunshine is stored
file_state = /home/retro/sunshine_state.json
file_state = /home/retro/.config/sunshine/sunshine_state.json

# The display modes advertised by Sunshine
#
Expand All @@ -61,7 +61,7 @@ file_state = /home/retro/sunshine_state.json
# ping_timeout = 2000

# The file where configuration for the different applications that Sunshine can run during a stream
file_apps = /home/retro/sunshine/apps.json
file_apps = /home/retro/.config/sunshine/apps.json

# How much error correcting packets must be send for every video
# This is just some random number, don't know the optimal value
Expand Down
11 changes: 6 additions & 5 deletions images/sunshine/scripts/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ gow_log "Waiting for X Server $DISPLAY to be available"
LOG_LEVEL=${LOG_LEVEL:-INFO}
gow_log "Starting sunshine with DISPLAY=${DISPLAY} and LOG_LEVEL=${LOG_LEVEL}"

mkdir -p "$HOME/sunshine/" "$HOME/.config/sunshine/"
cp -u /cfg/sunshine.conf "$HOME/sunshine/sunshine.conf"
cp -u /cfg/apps.json "$HOME/sunshine/apps.json"
mkdir -p "$HOME/.config/sunshine/"
cp -n /cfg/sunshine.conf "$HOME/.config/sunshine/sunshine.conf"
cp -n /cfg/sunshine.conf "$HOME/.config/sunshine/sunshine.conf.sample"
cp -n /cfg/apps.json "$HOME/.config/sunshine/apps.json"

## Pass sunshine credentials via ENV
sunshine "${HOME}/sunshine/sunshine.conf" --creds "${SUNSHINE_USER:-admin}" "${SUNSHINE_PASS:-admin}"
sunshine "${HOME}/.config/sunshine/sunshine.conf" --creds "${SUNSHINE_USER:-admin}" "${SUNSHINE_PASS:-admin}"

# Start Sunshine
exec sunshine min_log_level="$LOG_LEVEL" "${HOME}/sunshine/sunshine.conf"
exec sunshine min_log_level="$LOG_LEVEL" "${HOME}/.config/sunshine/sunshine.conf"

0 comments on commit 2f34427

Please sign in to comment.