deploy
This commit is contained in:
parent
aff9289130
commit
dbc840ca65
2 changed files with 1 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ get_log_info() {
|
||||||
|
|
||||||
latest_unlocker_log=$(ls -1t ${LOG_DIR}/components/unlocker_*.log 2>/dev/null | head -n 1)
|
latest_unlocker_log=$(ls -1t ${LOG_DIR}/components/unlocker_*.log 2>/dev/null | head -n 1)
|
||||||
|
|
||||||
latest_entry=$(grep -E "unlocker >> macaroon not found, creating wallet|unlocker >> wallet is locked, unlocking|unlocker >> the wallet is already unlocked" "$latest_unlocker_log" | tail -n 1)
|
latest_entry=$(tac "$latest_unlocker_log" | grep -m 1 -E "unlocker >> macaroon not found, creating wallet|unlocker >> wallet is locked, unlocking|unlocker >> the wallet is already unlocked")
|
||||||
|
|
||||||
if echo "$latest_entry" | grep -q "unlocker >> macaroon not found, creating wallet"; then
|
if echo "$latest_entry" | grep -q "unlocker >> macaroon not found, creating wallet"; then
|
||||||
log "Creating wallet..."
|
log "Creating wallet..."
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,6 @@ start_services() {
|
||||||
USER_NAME=$(whoami)
|
USER_NAME=$(whoami)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log "USER_HOME: $USER_HOME, USER_NAME: $USER_NAME"
|
|
||||||
|
|
||||||
if [ "$OS" = "Linux" ]; then
|
if [ "$OS" = "Linux" ]; then
|
||||||
if [ "$SYSTEMCTL_AVAILABLE" = true ]; then
|
if [ "$SYSTEMCTL_AVAILABLE" = true ]; then
|
||||||
sudo bash -c "cat > /etc/systemd/system/lnd.service <<EOF
|
sudo bash -c "cat > /etc/systemd/system/lnd.service <<EOF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue