mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Abstract archive-clips.sh
This commit is contained in:
@@ -31,12 +31,7 @@ ensure_cam_file_is_mounted
|
|||||||
|
|
||||||
fix_errors_in_cam_file
|
fix_errors_in_cam_file
|
||||||
|
|
||||||
if [ -r "/root/.teslaCamRsyncConfig" ]
|
/root/bin/archive-clips.sh
|
||||||
then
|
|
||||||
/root/bin/archive-rsync.sh
|
|
||||||
else
|
|
||||||
/root/bin/archive-cifs.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -r "/root/.teslaCamRsyncConfig" ]
|
if [ -r "/root/.teslaCamRsyncConfig" ]
|
||||||
then
|
then
|
||||||
|
|||||||
@@ -185,8 +185,8 @@ function configure_archive_scripts () {
|
|||||||
|
|
||||||
if [ $RSYNC_ENABLE = true ]
|
if [ $RSYNC_ENABLE = true ]
|
||||||
then
|
then
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/rsync_archive/archive-rsync.sh
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/rsync_archive/archive-clips.sh
|
||||||
chmod +x archive-rsync.sh
|
chmod +x archive-clips.sh
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/rsync_archive/connect-archive-rsync.sh
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/rsync_archive/connect-archive-rsync.sh
|
||||||
chmod +x connect-archive-rsync.sh
|
chmod +x connect-archive-rsync.sh
|
||||||
@@ -194,8 +194,8 @@ function configure_archive_scripts () {
|
|||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/rsync_archive/disconnect-archive-rsync.sh
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/rsync_archive/disconnect-archive-rsync.sh
|
||||||
chmod +x disconnect-archive-rsync.sh
|
chmod +x disconnect-archive-rsync.sh
|
||||||
else
|
else
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/archive-cifs.sh
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/archive-clips.sh
|
||||||
chmod +x archive-cifs.sh
|
chmod +x archive-clips.sh
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/connect-archive-cifs.sh
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/connect-archive-cifs.sh
|
||||||
chmod +x connect-archive-cifs.sh
|
chmod +x connect-archive-cifs.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user