Move creation of the TeslaCam directory to create-backingfiles.sh

The create-backingfiles.sh file already contains the responsibility for defining the mount points, which this step needs.
This commit is contained in:
cimryan
2018-10-23 18:18:35 -07:00
parent cc89acefce
commit 5b75897c7d
2 changed files with 8 additions and 8 deletions

View File

@@ -139,12 +139,6 @@ function create_usb_drive_backing_files () {
/tmp/create-backingfiles.sh "$campercent" "$BACKINGFILES_MOUNTPOINT"
}
function create_teslacam_directory () {
mount /mnt/cam
mkdir /mnt/cam/TeslaCam
umount /mnt/cam
}
function configure_archive () {
local archive_server_ip_address="$1"
@@ -276,8 +270,6 @@ echo "" >> /etc/fstab
create_usb_drive_backing_files
create_teslacam_directory
configure_archive "$ARCHIVE_SERVER_IP_ADDRESS"
configure_rc_local