WIP: Moving to cpack in order to unify installers across all platforms
This commit is contained in:
9
assets/linux-deb/preinst
Normal file
9
assets/linux-deb/preinst
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user