summaryrefslogtreecommitdiffstats
path: root/abs/core/linhes-scripts/upgrade_linhes.sh
blob: 933d994dc2cd4a947d08344dd6abb2dfd23cc49a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
mkfifo /tmp/upgrade.fifo

set | grep -q WINDOWID
status=$?

if [ $status = 0 ]
then
 echo "This script must run from the console" 1>&2
 exit 1
fi


if [ "$(id -u)" != "0" ];
then
   echo "This script must be run as root" 1>&2
   exit 1

fi


sv stop mythbackend
sv stop frontend

screen -c /usr/LH/etc/upgrade_screen_rc