mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-29 22:20:24 +00:00
remove config backup and restore
This commit is contained in:
parent
30c178baa1
commit
7dc8546c25
@ -585,12 +585,8 @@ elseif(UNIX)
|
||||
install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/85-sunshine.rules" DESTINATION "${CMAKE_INSTALL_LIBDIR}/udev/rules.d")
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine.service" DESTINATION "${CMAKE_INSTALL_LIBDIR}/systemd/user")
|
||||
|
||||
# Pre and post install
|
||||
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
|
||||
"${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/preinst"
|
||||
"${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/postinst"
|
||||
"${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/conffiles")
|
||||
set(CPACK_RPM_PRE_INSTALL_SCRIPT_FILE "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/preinst")
|
||||
# Post install
|
||||
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/postinst")
|
||||
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/postinst")
|
||||
|
||||
# Dependencies
|
||||
|
@ -1,2 +0,0 @@
|
||||
/usr/local/sunshine/config/sunshine.conf
|
||||
/usr/local/sunshine/config/apps.json
|
@ -12,27 +12,6 @@ else
|
||||
echo "Warning: /etc/group not found"
|
||||
fi
|
||||
|
||||
if [ -f /usr/local/sunshine/config/sunshine.conf.old ]; then
|
||||
echo "Restoring old sunshine.conf"
|
||||
mv /usr/local/sunshine/config/sunshine.conf.old /usr/local/sunshine/config/sunshine.conf
|
||||
fi
|
||||
|
||||
if [ -f /usr/local/sunshine/config/apps.json.old ]; then
|
||||
echo "Restoring old apps.json"
|
||||
mv /usr/local/sunshine/config/apps.json.old /usr/local/sunshine/config/apps.json
|
||||
fi
|
||||
|
||||
# Update permissions on config files for Web Manager
|
||||
if [ -f /usr/local/sunshine/config/apps.json ]; then
|
||||
echo "chmod 666 /etc/sunshine/apps.json"
|
||||
chmod 666 /usr/local/sunshine/config/apps.json
|
||||
fi
|
||||
|
||||
if [ -f /usr/local/sunshine/config/sunshine.conf ]; then
|
||||
echo "chmod 666 /etc/sunshine/sunshine.conf"
|
||||
chmod 666 /usr/local/sunshine/config/sunshine.conf
|
||||
fi
|
||||
|
||||
# Ensure Sunshine can grab images from KMS
|
||||
path_to_setcap=$(which setcap)
|
||||
if [ -x "$path_to_setcap" ] ; then
|
||||
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
#Store backup for old config files to prevent it from being overwritten
|
||||
if [ -f /usr/local/sunshine/config/sunshine.conf ]; then
|
||||
cp /usr/local/sunshine/config/sunshine.conf /usr/local/sunshine/config/sunshine.conf.old
|
||||
fi
|
||||
|
||||
if [ -f /usr/local/sunshine/config/apps.json ]; then
|
||||
cp /usr/local/sunshine/config/apps.json /usr/local/sunshine/config/apps.json.old
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user