summaryrefslogtreecommitdiffstats
path: root/abs/core/linhes-scripts/upgrade_linhes.sh
blob: 84d6a5156d38e2c84e11df2222cc80a1bd1ff412 (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 (CTRL + ALT + F3) or ssh." 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