Merge pull request #345 from fewtarius/dev

Back up the system.cfg file first, then clean any bad data that may h…
This commit is contained in:
fewtarius 2022-08-13 10:27:44 -04:00 committed by GitHub
commit 544b86a566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,4 +34,5 @@ fi
### Make sure there are no invalid characters in system.cfg
### or ES will not start.
sed -i 's/[\d128-\d255]//g' /storage/.config/system/configs/system.cfg
cp /storage/.config/system/configs/system.cfg /storage/.config/system/configs/last_system.cfg
grep -i "^[A-Z|a-z]" /storage/.config/system/configs/last_system.cfg >/storage/.config/system/configs/system.cfg