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:
commit
544b86a566
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue