annotate scripts/dbus/dbus-launch.sh @ 112:a573bddf8039

docker (libervia_cont): put container used for maintenance in a variable
author Goffi <goffi@goffi.org>
date Mon, 29 Feb 2016 22:01:02 +0100
parents 703a394b9780
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
1 #!/bin/sh
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
2
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
3 DBUS_PATH="/tmp/.dbus.`whoami`"
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
4
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
5 if [ ! -e $DBUS_PATH ]; then
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
6 dbus-launch --sh-syntax > $DBUS_PATH
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
7 chmod 400 $DBUS_PATH
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
8 fi
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
9
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
10 cat $DBUS_PATH