blob: fe49821864ca84c07cd8fa0ca0d36a73b13e714c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
set -ex
branding="$1"
server_path="$2"
web_path="$2/traccar-web"
function rebrand_assets {
echo "Rebranding public assets..."
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
|