diff options
author | Iván Ávalos <avalos@disroot.org> | 2024-04-20 13:42:04 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2024-04-20 13:42:04 -0600 |
commit | cea26e7d9fdf03d7ece2f7b858e53f54f8678bd3 (patch) | |
tree | 26873c09294fa2d09b9ae3f70c5612a5707084f0 /rebrand.sh | |
parent | a62c05ec59303227ead48fb5f3cc5b6e452bb264 (diff) | |
download | trackermap-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-x | rebrand.sh | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 |