mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
cleaning up config functions.
This commit is contained in:
@@ -12,6 +12,8 @@ function configure_archive () {
|
|||||||
mv /root/.config/rclone /mutable/configs
|
mv /root/.config/rclone /mutable/configs
|
||||||
ln -s /mutable/configs/rclone /root/.config/rclone
|
ln -s /mutable/configs/rclone /root/.config/rclone
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "done"
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_archive
|
configure_archive
|
||||||
@@ -1,16 +1,11 @@
|
|||||||
#!/bin/bash -eu
|
#!/bin/bash -eu
|
||||||
|
|
||||||
function configure_archive () {
|
function configure_archive () {
|
||||||
local archive_server_ip_address="$1"
|
echo "Configuring the rsync archive..."
|
||||||
|
|
||||||
echo "Configuring the archive..."
|
|
||||||
|
|
||||||
echo "Configuring for Rsync..."
|
|
||||||
echo "user=$RSYNC_USER" > /root/.teslaCamRsyncConfig
|
echo "user=$RSYNC_USER" > /root/.teslaCamRsyncConfig
|
||||||
echo "server=$RSYNC_SERVER" >> /root/.teslaCamRsyncConfig
|
echo "server=$RSYNC_SERVER" >> /root/.teslaCamRsyncConfig
|
||||||
echo "path=$RSYNC_PATH" >> /root/.teslaCamRsyncConfig
|
echo "path=$RSYNC_PATH" >> /root/.teslaCamRsyncConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
ARCHIVE_SERVER_IP_ADDRESS="$( /root/bin/get-archiveserver-ip-address.sh )"
|
configure_archive
|
||||||
|
|
||||||
configure_archive "$ARCHIVE_SERVER_IP_ADDRESS"
|
|
||||||
Reference in New Issue
Block a user