Skip to content
Snippets Groups Projects
Commit f788e436 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove drives baseline file on reset of the system

parent f5dbf962
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,10 @@ APP_INSTALL_TIMEOUT_SEC=3600
# file containing new password
IMAGE_PASSWORD_FILE=/root/login.txt
# Stores a list of drives when the system was first installed.
# This is used to detect drives later connected
DRIVES_BASELINE_FILE=/root/.drives_baseline
install_state=$INSTALL_STATE_FIRST_BOOT
CONFIGURATION_FILE="/root/${PROJECT_NAME}.cfg"
......@@ -528,6 +532,11 @@ function web_admin_setup_login {
rm /root/.passwords/root/master
fi
# remove detected drives file used by backup system
if [ -f $DRIVES_BASELINE_FILE ]; then
rm $DRIVES_BASELINE_FILE
fi
# this file indicates that the setup screen is active
# and gets removed by freedombone-installer
if [ ! -f "$webadmin_install_dir/.setupscreenactive" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment