mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
Preserve ES cfg if not doing major update
This commit is contained in:
parent
9e50cdf4a8
commit
e89f9f2725
|
@ -306,10 +306,6 @@ post_update() {
|
|||
mkdir -pv $rdhome/.logs #this was added later, maybe safe to remove in a few versions
|
||||
|
||||
|
||||
# Resetting es_settings, now we need it but in the future I should think a better solution, maybe with sed
|
||||
cp -fv /app/retrodeck/es_settings.xml /var/config/emulationstation/.emulationstation/es_settings.xml
|
||||
|
||||
|
||||
# 0.4 -> 0.5
|
||||
# Perform save and state migration if needed
|
||||
|
||||
|
@ -452,6 +448,10 @@ post_update() {
|
|||
overwrite_configs=true
|
||||
fi
|
||||
|
||||
if [ $overwrite_configs = true ]; then
|
||||
cp -fv /app/retrodeck/es_settings.xml /var/config/emulationstation/.emulationstation/es_settings.xml # preserve settings if not performing a major update
|
||||
fi
|
||||
|
||||
(
|
||||
ra_init
|
||||
standalones_init
|
||||
|
|
Loading…
Reference in a new issue