Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Jul 10, 2024
1 parent a44321c commit b38779e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion snap/hooks/install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/bash -e

# Define a function to log messages
log() {
Expand Down
2 changes: 1 addition & 1 deletion snap/local/image_view_launcher.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/bash -e

# Get the namespace and device namespace from snapctl
NAMESPACE="$(snapctl get driver.namespace)"
Expand Down
2 changes: 1 addition & 1 deletion snap/local/launcher.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/bin/bash -e

log() {
local message="$1"
Expand Down
8 changes: 2 additions & 6 deletions snap/local/start_launcher.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/sh -e
#!/bin/bash -e

log() {
local message="$1"
# Log the message with logger
logger -t "${SNAP_NAME}" "stop: $message"
}
source $SNAP/usr/bin/utils.sh

log "Start ${SNAP_NAME}.daemon service"
snapctl start --enable ${SNAP_NAME}.daemon 2>&1 || true
Expand Down
8 changes: 2 additions & 6 deletions snap/local/stop_launcher.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/sh -e
#!/bin/bash -e

log() {
local message="$1"
# Log the message with logger
logger -t "${SNAP_NAME}" "stop: $message"
}
source $SNAP/usr/bin/utils.sh

log "Stop ${SNAP_NAME}.daemon service"
snapctl stop --disable ${SNAP_NAME}.daemon 2>&1 || true

0 comments on commit b38779e

Please sign in to comment.