mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
refactoring to add back write configs script
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
function configure_archive () {
|
||||
echo "Configuring rclone archive..."
|
||||
|
||||
echo "drive=$RCLONE_DRIVE" > /root/.teslaCamRcloneConfig
|
||||
echo "path=$RCLONE_PATH" >> /root/.teslaCamRcloneConfig
|
||||
local config_file_path="/root/.teslaCamRcloneConfig"
|
||||
/root/bin/write-archive-configs-to.sh "$config_file_path"
|
||||
|
||||
if [ ! -L "/root/.config/rclone" ] && [ -e "/root/.config/rclone" ]
|
||||
then
|
||||
|
||||
6
run/rclone_archive/write-archive-configs-to.sh
Normal file
6
run/rclone_archive/write-archive-configs-to.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
FILE_PATH="$1"
|
||||
|
||||
echo "drive=$RCLONE_DRIVE" > "$FILE_PATH"
|
||||
echo "path=$RCLONE_PATH" >> "$FILE_PATH"
|
||||
Reference in New Issue
Block a user