summarylogtreecommitdiffstats
path: root/todesk.install
blob: 2699b5142fac7a884cee09232c89f6623762dae5 (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
26
27
28
post_install() {
  systemctl daemon-reload
  if systemctl -q is-active todeskd.service ;then
    systemctl restart todeskd.service
  fi

  ECHOLEN=$(echo -e|awk '{print length($0)}')
  if [ ${ECHOLEN} = '0' ]
  then
    ECHO='echo -e'
  else
    ECHO='echo'
  fi
  
  $ECHO "\033[36m**************************************************************\033[0m"
  $ECHO "\033[36m*  todeskd daemon service must be running for todesk to work *\033[0m"
  $ECHO "\033[36m*  Type: systemctl start todeskd.service                     *\033[0m"
  $ECHO "\033[36m*  Todesk Remote Control doesn't support Wayland, Xorg ONLY! *\033[0m"
  $ECHO "\033[36m**************************************************************\033[0m"
}

# pre_upgrade() {
#   chmod 0755 /opt/todesk
# }

post_upgrade() {
  post_install
}