mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-04 12:05:04 +02:00
prepare config
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user