Preserve ES cfg if not doing major update

This commit is contained in:
icenine451 2022-10-14 11:55:57 -04:00
parent 9e50cdf4a8
commit e89f9f2725

View file

@ -306,10 +306,6 @@ post_update() {
mkdir -pv $rdhome/.logs #this was added later, maybe safe to remove in a few versions 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 # 0.4 -> 0.5
# Perform save and state migration if needed # Perform save and state migration if needed
@ -452,6 +448,10 @@ post_update() {
overwrite_configs=true overwrite_configs=true
fi 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 ra_init
standalones_init standalones_init