summarylogtreecommitdiffstats
path: root/xrdp-devel-git.install
blob: e250565829cb729b167d9dcb675e49fbbba4b2ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_upgrade() {
  if [ ! -e /etc/xrdp/rsakeys.ini ]; then
    xrdp-keygen xrdp /etc/xrdp/rsakeys.ini
  fi
}

post_install() {
  post_upgrade
}

pre_remove() {
  if [ -f /etc/xrdp/rsakeys.ini ]; then
    rm /etc/xrdp/rsakeys.ini
  fi
}