prepare config

This commit is contained in:
rootzoll
2021-05-03 14:56:39 +02:00
parent 280fc2886f
commit 8e984c58c9

View File

@@ -105,11 +105,18 @@ if [ "${migrationOS}" == "" ]; then
echo "# CREATING raspiblitz.conf from your setup choices" echo "# CREATING raspiblitz.conf from your setup choices"
# prepare the config file (what will later become the raspiblitz.config) # prepate config file
CONFIGFILE="/mnt/hdd/raspiblitz.conf.tmp"
sudo rm $CONFIGFILE 2>/dev/null
sudo chown admin:admin $CONFIGFILE
sudo chmod 777 $CONFIGFILE
# source the raspiblitz version
source /home/admin/_version.info source /home/admin/_version.info
CONFIGFILE="/mnt/hdd/raspiblitz.config" # source the setup state fresh
rm $CONFIGFILE 2>/dev/null source $SETUPFILE
echo "# RASPIBLITZ CONFIG FILE" > $CONFIGFILE echo "# RASPIBLITZ CONFIG FILE" > $CONFIGFILE
echo "raspiBlitzVersion='${codeVersion}'" >> $CONFIGFILE echo "raspiBlitzVersion='${codeVersion}'" >> $CONFIGFILE
echo "lcdrotate=1" >> $CONFIGFILE echo "lcdrotate=1" >> $CONFIGFILE
@@ -124,6 +131,9 @@ else
# Process Migration # Process Migration
# TODO: move this part later outside of dialog controller and combine with data from WebUI # TODO: move this part later outside of dialog controller and combine with data from WebUI
# source the setup state fresh
source $SETUPFILE
echo "TODO: Process Migration" echo "TODO: Process Migration"
exit 1 exit 1