mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-12 05:39:22 +02:00
#1039 set new version in config on update
This commit is contained in:
parent
f890c2575e
commit
aec033b468
@ -13,7 +13,7 @@ lndAddress=''
|
||||
lndPort='9735'
|
||||
network=bitcoin
|
||||
publicIP='1.2.3.4'
|
||||
raspiBlitzVersion='1.3'
|
||||
raspiBlitzVersion='1.4'
|
||||
rtlWebinterface=off
|
||||
runBehindTor=off
|
||||
touchscreen=1
|
||||
|
@ -160,6 +160,8 @@ echo "Version Data: ${raspiBlitzVersion}" >> ${logFile}
|
||||
if [ "${raspiBlitzVersion}" != "${codeVersion}" ]; then
|
||||
echo "detected version change ... starting migration script" >> ${logFile}
|
||||
echo "TODO: Update Migration check ... only needed after version 1.0" >> ${logFile}
|
||||
echo "OK Done - Updating version in config ..."
|
||||
sudo sed -i "s/^raspiBlitzVersion=.*/raspiBlitzVersion='${codeVersion}'/g" ${configFile}
|
||||
else
|
||||
echo "OK - version of config data is up to date" >> ${logFile}
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user