From b327b735a71e43b61eb16991904df242796e9e30 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Tue, 23 Jul 2019 18:22:24 -0400 Subject: bootstrap/helpers/update-thumbnails: Use root directory set by webserver --- bootstrap/helpers/update-thumbnails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap') diff --git a/bootstrap/helpers/update-thumbnails b/bootstrap/helpers/update-thumbnails index b838769..7175794 100755 --- a/bootstrap/helpers/update-thumbnails +++ b/bootstrap/helpers/update-thumbnails @@ -1,6 +1,6 @@ #!/bin/bash -cd /srv/http/staging/thedroneely.com/public/images || exit 1; +cd images/ && touch .update-thumbnails || exit 1; mogrify -path thumbnails/ -auto-orient -quiet -thumbnail x222 $(find . -maxdepth 1 -type f -mtime -1) || echo 'No Images Updated.' && exit 1; rename jpg png thumbnails/*; echo Image Thumbnails in "'$(pwd)'" updated.; -- cgit v1.2.3