-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Moving to cpack in order to unify installers across all platforms
- Loading branch information
Showing
6 changed files
with
112 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/etc/sunshine/sunshine.conf | ||
/etc/sunshine/apps_linux.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/sh | ||
|
||
export GROUP_INPUT=input | ||
|
||
if [ -f /etc/group ]; then | ||
if ! grep -q $GROUP_INPUT /etc/group; then | ||
echo "Creating group $GROUP_INPUT" | ||
|
||
groupadd $GROUP_INPUT | ||
fi | ||
else | ||
echo "Warning: /etc/group not found" | ||
fi | ||
|
||
if [ -f /etc/sunshine/sunshine.conf.old ]; then | ||
echo "Restoring old sunshine.conf" | ||
mv /etc/sunshine/sunshine.conf.old /etc/sunshine/sunshine.conf | ||
fi | ||
|
||
if [ -f /etc/sunshine/apps_linux.json.old ]; then | ||
echo "Restoring old apps_linux.json" | ||
mv /etc/sunshine/apps_linux.json.old /etc/sunshine/apps_linux.json | ||
fi | ||
|
||
# Update permissions on config files for Web Manager | ||
if [ -f /etc/sunshine/apps_linux.json ]; then | ||
echo "chmod 666 /etc/sunshine/apps_linux.json" | ||
chmod 666 /etc/sunshine/apps_linux.json | ||
fi | ||
|
||
if [ -f /etc/sunshine/sunshine.conf ]; then | ||
echo "chmod 666 /etc/sunshine/sunshine.conf" | ||
chmod 666 /etc/sunshine/sunshine.conf | ||
fi | ||
|
||
# Ensure Sunshine can grab images from KMS | ||
path_to_setcap=$(which setcap) | ||
if [ -x "$path_to_setcap" ] ; then | ||
echo "$path_to_setcap cap_sys_admin+p /usr/bin/sunshine" | ||
$path_to_setcap cap_sys_admin+p $(readlink -f /usr/bin/sunshine) | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
#Store backup for old config files to prevent it from being overwritten | ||
if [ -f /etc/sunshine/sunshine.conf ]; then | ||
cp /etc/sunshine/sunshine.conf /etc/sunshine/sunshine.conf.old | ||
fi | ||
|
||
if [ -f /etc/sunshine/apps_linux.json ]; then | ||
cp /etc/sunshine/apps_linux.json /etc/sunshine/apps_linux.json.old | ||
fi |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.