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,9 +3,8 @@
|
||||
function configure_archive () {
|
||||
echo "Configuring the rsync archive..."
|
||||
|
||||
echo "user=$RSYNC_USER" > /root/.teslaCamRsyncConfig
|
||||
echo "server=$RSYNC_SERVER" >> /root/.teslaCamRsyncConfig
|
||||
echo "path=$RSYNC_PATH" >> /root/.teslaCamRsyncConfig
|
||||
local config_file_path="/root/.teslaCamRsyncConfig"
|
||||
/root/bin/write-archive-configs-to.sh "$config_file_path"
|
||||
}
|
||||
|
||||
configure_archive
|
||||
7
run/rsync_archive/write-archive-configs-to.sh
Normal file
7
run/rsync_archive/write-archive-configs-to.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
FILE_PATH="$1"
|
||||
|
||||
echo "user=$RSYNC_USER" > "$FILE_PATH"
|
||||
echo "server=$RSYNC_SERVER" >> "$FILE_PATH"
|
||||
echo "path=$RSYNC_PATH" >> "$FILE_PATH"
|
||||
Reference in New Issue
Block a user