summaryrefslogtreecommitdiff
path: root/rebrand.sh
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-04-20 13:42:04 -0600
committerIván Ávalos <avalos@disroot.org>2024-04-20 13:42:04 -0600
commitcea26e7d9fdf03d7ece2f7b858e53f54f8678bd3 (patch)
tree26873c09294fa2d09b9ae3f70c5612a5707084f0 /rebrand.sh
parenta62c05ec59303227ead48fb5f3cc5b6e452bb264 (diff)
downloadtrackermap-branding-cea26e7d9fdf03d7ece2f7b858e53f54f8678bd3.tar.gz
trackermap-branding-cea26e7d9fdf03d7ece2f7b858e53f54f8678bd3.tar.bz2
trackermap-branding-cea26e7d9fdf03d7ece2f7b858e53f54f8678bd3.zip
Add resources override to script
Diffstat (limited to 'rebrand.sh')
-rwxr-xr-xrebrand.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/rebrand.sh b/rebrand.sh
index b34e872..fe49821 100755
--- a/rebrand.sh
+++ b/rebrand.sh
@@ -8,12 +8,22 @@ web_path="$2/traccar-web"
function rebrand_assets {
echo "Rebranding public assets..."
- cp -rf "shared/public" "${web_path}"
- cp -rf "${branding}/public" "${web_path}"
+ if [ -d "${branding}/public" ]; then
+ cp -rf "${branding}/public" "${web_path}"
+ fi
+}
+
+function rebrand_resources {
+ echo "Rebranding app resources..."
+
+ if [ -d "${branding}/resources" ]; then
+ cp -rf "${branding}/resources" "${web_path}/src"
+ fi
}
function main {
rebrand_assets
+ rebrand_resources
}
main