mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
add logic to move config file into /mutable as part of configuring the archive
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
function configure_archive () {
|
||||
echo "Configuring the archive for Rclone..."
|
||||
echo "Configuring rclone archive..."
|
||||
|
||||
echo "drive=$RCLONE_DRIVE" > /root/.teslaCamRcloneConfig
|
||||
echo "path=$RCLONE_PATH" >> /root/.teslaCamRcloneConfig
|
||||
|
||||
if [ ! -L "/root/.config/rclone" ] && [ -e "/root/.config/rclone" ]
|
||||
then
|
||||
echo "Moving rclone configs in /mutable"
|
||||
mv /root/.config/rclone /mutable/configs
|
||||
ln -s /mutable/configs/rclone /root/.config/rclone
|
||||
fi
|
||||
}
|
||||
|
||||
configure_archive
|
||||
Reference in New Issue
Block a user