mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Merge pull request #589 from bennealon/post_inst_service_failure_for_multiple_users
Debian post-inst script fails to correctly create system service when multiple users are present
This commit is contained in:
commit
23b21882f2
@ -29,7 +29,7 @@ BOOT_BERRYBOOT=$(grep -m1 -c '\(/var/media\|/media/pi\)/berryboot' /etc/mtab)
|
|||||||
NET_IP=`hostname -I | cut -d " " -f1`
|
NET_IP=`hostname -I | cut -d " " -f1`
|
||||||
|
|
||||||
# search for users in system, returns first entry
|
# search for users in system, returns first entry
|
||||||
FOUND_USR=`who | grep -o '^\w*\b'` || "root"
|
FOUND_USR=`who | grep -o -m1 '^\w*\b'` || "root"
|
||||||
|
|
||||||
# determine if we should use a service
|
# determine if we should use a service
|
||||||
ENABLE_SERVICE=0
|
ENABLE_SERVICE=0
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
echo "---Hyperion ambient light preinst ---"
|
echo "---Hyperion ambient light preinst ---"
|
||||||
|
|
||||||
# search for users in system, returns first entry
|
# search for users in system, returns first entry
|
||||||
FOUND_USR=`who | grep -o '^\w*\b'` || "root"
|
FOUND_USR=`who | grep -o -m1 '^\w*\b'` || "root"
|
||||||
|
|
||||||
# stop running daemon before we install
|
# stop running daemon before we install
|
||||||
if pgrep hyperiond > /dev/null 2>&1
|
if pgrep hyperiond > /dev/null 2>&1
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
echo "---Hyperion ambient light prerm ---"
|
echo "---Hyperion ambient light prerm ---"
|
||||||
|
|
||||||
# search for users in system, returns first entry
|
# search for users in system, returns first entry
|
||||||
FOUND_USR=`who | grep -o '^\w*\b'` || "root"
|
FOUND_USR=`who | grep -o -m1 '^\w*\b'` || "root"
|
||||||
|
|
||||||
# stop running daemon before we delete it
|
# stop running daemon before we delete it
|
||||||
HYPERION_RUNNING=false
|
HYPERION_RUNNING=false
|
||||||
|
@ -29,7 +29,7 @@ BOOT_BERRYBOOT=$(grep -m1 -c '\(/var/media\|/media/pi\)/berryboot' /etc/mtab)
|
|||||||
NET_IP=`hostname -I | cut -d " " -f1`
|
NET_IP=`hostname -I | cut -d " " -f1`
|
||||||
|
|
||||||
# search for users in system, returns first entry
|
# search for users in system, returns first entry
|
||||||
FOUND_USR=`who | grep -o '^\w*\b'` || "root"
|
FOUND_USR=`who | grep -o -m1 '^\w*\b'` || "root"
|
||||||
|
|
||||||
# determine if we should use a service
|
# determine if we should use a service
|
||||||
ENABLE_SERVICE=0
|
ENABLE_SERVICE=0
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
echo "---Hyperion ambient light preinst ---"
|
echo "---Hyperion ambient light preinst ---"
|
||||||
|
|
||||||
# search for users in system, returns first entry
|
# search for users in system, returns first entry
|
||||||
FOUND_USR=`who | grep -o '^\w*\b'` || "root"
|
FOUND_USR=`who | grep -o -m1 '^\w*\b'` || "root"
|
||||||
|
|
||||||
# stop running daemon before we install
|
# stop running daemon before we install
|
||||||
if pgrep hyperiond > /dev/null 2>&1
|
if pgrep hyperiond > /dev/null 2>&1
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
echo "---Hyperion ambient light prerm ---"
|
echo "---Hyperion ambient light prerm ---"
|
||||||
|
|
||||||
# search for users in system, returns first entry
|
# search for users in system, returns first entry
|
||||||
FOUND_USR=`who | grep -o '^\w*\b'` || "root"
|
FOUND_USR=`who | grep -o -m1 '^\w*\b'` || "root"
|
||||||
|
|
||||||
# stop running daemon before we delete it
|
# stop running daemon before we delete it
|
||||||
HYPERION_RUNNING=false
|
HYPERION_RUNNING=false
|
||||||
|
Loading…
Reference in New Issue
Block a user