Skip to content

Commit 0c43b83

Browse files
author
loki
committed
make config files writable for Web Manager on Linux when installed web debian package
1 parent c47e3cb commit 0c43b83

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

gen-deb.in

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Package: sunshine
3535
Architecture: amd64
3636
Maintainer: @loki
3737
Priority: optional
38-
Version: 0.7.1
38+
Version: 0.7.3
3939
Depends: libssl1.1, libavdevice58, libboost-thread1.71.0, libboost-filesystem1.71.0, libboost-log1.71.0, libpulse0, libopus0, libxcb-shm0, libxcb-xfixes0
4040
Description: Gamestream host for Moonlight
4141
EOF
@@ -54,6 +54,17 @@ if [ -f /etc/group ]; then
5454
else
5555
echo "Warning: /etc/group not found"
5656
fi
57+
58+
# Update permissions on config files for Web Manager
59+
if [ -f /etc/sunshine/apps_linux.json ]; then
60+
echo "chmod 666 /etc/sunshine/apps_linux.json"
61+
chmod 666 /etc/sunshine/apps_linux.json
62+
fi
63+
64+
if [ -f /etc/sunshine/sunshine.conf ]; then
65+
echo "chmod 666 /etc/sunshine/sunshine.conf"
66+
chmod 666 /etc/sunshine/sunshine.conf
67+
fi
5768
EOF
5869

5970
cat << 'EOF' > $RULES/85-sunshine-rules.rules
@@ -71,6 +82,8 @@ cp -r @CMAKE_CURRENT_SOURCE_DIR@/assets/shaders/opengl $ASSETS/shaders/opengl
7182
chmod 755 $DEBIAN/postinst
7283
chmod 755 $BIN/sunshine
7384
chmod 644 $RULES/85-sunshine-rules.rules
85+
chmod 666 $ASSETS/apps_linux.json
86+
chmod 666 $ASSETS/sunshine.conf
7487

7588
cd package-deb
7689
if fakeroot dpkg-deb --build sunshine; then

0 commit comments

Comments
 (0)