mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
50_Signalbot: Disable Docker and fix test method
git-svn-id: https://svn.fhem.de/fhem/trunk@25001 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
45c1d9e988
commit
8aba48655b
@ -31,7 +31,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q docker /proc/1/cgroup; then
|
if grep -q docker /proc/1/cgroup; then
|
||||||
echo "You seem to run in a docker environment. Warning: This is experimental"
|
echo "You seem to run in a docker environment. This currently not supported"
|
||||||
|
exit
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
USER=`id | grep root`
|
USER=`id | grep root`
|
||||||
@ -213,6 +214,7 @@ fi
|
|||||||
install_by_file /usr/include/dbus-1.0/dbus/dbus.h libdbus-1-dev
|
install_by_file /usr/include/dbus-1.0/dbus/dbus.h libdbus-1-dev
|
||||||
install_by_file /usr/share/build-essential/essential-packages-list build-essential
|
install_by_file /usr/share/build-essential/essential-packages-list build-essential
|
||||||
install_by_file /usr/share/doc/libimage-librsvg-perl libimage-librsvg-perl
|
install_by_file /usr/share/doc/libimage-librsvg-perl libimage-librsvg-perl
|
||||||
|
install_by_file /usr/share/man/man3/URI::Escape.3pm.gz liburi-perl
|
||||||
|
|
||||||
cat >$TMPFILE <<EOF
|
cat >$TMPFILE <<EOF
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
@ -438,16 +440,16 @@ start_service() {
|
|||||||
test_device() {
|
test_device() {
|
||||||
start_service
|
start_service
|
||||||
echo -n "Checking installation via dbus-send command..."
|
echo -n "Checking installation via dbus-send command..."
|
||||||
REPLY=`dbus-send --system --type=method_call --print-reply --dest="org.asamk.Signal" /org/asamk/Signal org.asamk.Signal.isRegistered`
|
REPLY=`dbus-send --system --type=method_call --print-reply --dest="org.asamk.Signal" /org/asamk/Signal org.asamk.Signal.version`
|
||||||
REP1=`echo $REPLY | grep "boolean false"`
|
REP1=`echo $REPLY | grep $SIGNALVERSION`
|
||||||
REP2=`echo $REPLY | grep "boolean true"`
|
#REP2=`echo $REPLY | grep "boolean true"`
|
||||||
|
|
||||||
if [ -n "$REP1" ]; then
|
if [ -n "$REP1" ]; then
|
||||||
echo "success - signal-cli running in standard registration mode"
|
echo "success" # - "signal-cli running in standard registration mode"
|
||||||
fi
|
|
||||||
if [ -n "$REP2" ]; then
|
|
||||||
echo "partial success - still running in -u mode - check $SYSTEMD/signal.service"
|
|
||||||
fi
|
fi
|
||||||
|
#if [ -n "$REP2" ]; then
|
||||||
|
# echo "partial success - still running in -u mode - check $SYSTEMD/signal.service"
|
||||||
|
#fi
|
||||||
|
|
||||||
cat <<EOF >$TMPFILE
|
cat <<EOF >$TMPFILE
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
@ -469,7 +471,7 @@ my @att=();
|
|||||||
signature => '',
|
signature => '',
|
||||||
body => undef,
|
body => undef,
|
||||||
destination => 'org.asamk.Signal',
|
destination => 'org.asamk.Signal',
|
||||||
member => 'isRegistered',
|
member => 'version',
|
||||||
)->then( sub {
|
)->then( sub {
|
||||||
print "reply received\n";
|
print "reply received\n";
|
||||||
} )->catch( sub {
|
} )->catch( sub {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user