mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-11-04 11:38:44 +00:00
Better log formatting
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o allexport; source "$(dirname $0)/.env"; set +o allexport
|
||||
source "$(dirname $0)/utils.sh"
|
||||
|
||||
echo "Uploading UI configuration..."
|
||||
log "[ui] uploading configuration..."
|
||||
|
||||
ssh $REMOTE_HOST -p $REMOTE_PORT "rm -rf $REMOTE_REPO_PATH/config/lovelace"
|
||||
|
||||
scp -P $REMOTE_PORT \
|
||||
-r config/themes/ config/*-lovelace.yaml config/lovelace \
|
||||
"${REMOTE_HOST}:${REMOTE_REPO_PATH}/config"
|
||||
"${REMOTE_HOST}:${REMOTE_REPO_PATH}/config" > /dev/null
|
||||
|
||||
log "${NO_FORMAT}[ui] ${GREEN}done${NO_FORMAT}"
|
||||
|
||||
Reference in New Issue
Block a user