Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions snap/local/launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# that mosquitto is being run as a system daemon, and SNAP_COMMON will be used.
# If a non-root user runs the command, then SNAP_USER_COMMON will be used.

case "$SNAP_USER_COMMON" in
*/root/snap/mosquitto/common*) COMMON=$SNAP_COMMON ;;
*) COMMON=$SNAP_USER_COMMON ;;
case "$SNAP_UID" in
0) COMMON="$(sed -E "s#/$SNAP_NAME/#/${SNAP_INSTANCE_NAME}/#" <<< $SNAP_COMMON)";;
*) COMMON="$(sed -E "s#/$SNAP_NAME/#/${SNAP_INSTANCE_NAME}/#" <<< $SNAP_USER_COMMON)";;
esac

CONFIG_FILE="$SNAP/default_config.conf"
Expand Down