move convert heic script
This commit is contained in:
1 parent
d1887382f2
commit
286e5fa950
1 file changed
+6
-6
@@ -2,7 +2,7 @@
|
||||
|
||||
set -euo pipefail
|
||||
shopt -s nullglob nocaseglob
|
||||
LOGFILE="/home/lucas/.LOG/convertheic.log"
|
||||
LOGFILE="/home/lucas/logs/convertheic.log"
|
||||
|
||||
mkdir -p "$(dirname "$LOGFILE")"
|
||||
exec >>"$LOGFILE" 2>&1
|
||||
@@ -166,13 +166,13 @@ process_file() {
|
||||
}
|
||||
|
||||
|
||||
HOSTNAME_EXPECTED="serverhost"
|
||||
SOURCE_DIR="/torrent/alina/Dropfolder"
|
||||
TARGET_DIR="/torrent/camera"
|
||||
HOSTNAME_EXPECTED="mediahost"
|
||||
SOURCE_DIR="/data/nextcloud/syncuser/alina/Dropfolder"
|
||||
TARGET_DIR="/data/nextcloud/syncuser/camera"
|
||||
|
||||
# If running on serverhost, perform initial sync
|
||||
if [[ "$(hostname)" == "$HOSTNAME_EXPECTED" ]]; then
|
||||
/home/lucas/scripts/serverhost/syncNC.sh -d -c
|
||||
syncNC -d -c
|
||||
cd "$SOURCE_DIR" || exit 1
|
||||
fi
|
||||
|
||||
@@ -203,6 +203,6 @@ if [[ "$(hostname)" == "$HOSTNAME_EXPECTED" ]]; then
|
||||
done
|
||||
shopt -u nullglob
|
||||
|
||||
/home/lucas/scripts/serverhost/syncNC.sh -d -c
|
||||
syncNC -d -c
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user