summaryrefslogtreecommitdiff
path: root/pcr/xrdp/xrdp.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-07 17:08:21 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-07 17:08:21 -0500
commitfaddf6fffa4879efb8fc3e0c3c1ee6fe05fd94d8 (patch)
treeccf82cc950461c214645b29a76f452108471f56b /pcr/xrdp/xrdp.install
parentd20b2e8a34a7e88fdf6e804b69f7c402006a40bd (diff)
downloadabslibre-faddf6fffa4879efb8fc3e0c3c1ee6fe05fd94d8.tar.gz
abslibre-faddf6fffa4879efb8fc3e0c3c1ee6fe05fd94d8.tar.bz2
abslibre-faddf6fffa4879efb8fc3e0c3c1ee6fe05fd94d8.zip
xrdp-0.8.0-2: updating version
Diffstat (limited to 'pcr/xrdp/xrdp.install')
-rw-r--r--pcr/xrdp/xrdp.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/pcr/xrdp/xrdp.install b/pcr/xrdp/xrdp.install
new file mode 100644
index 000000000..e25056582
--- /dev/null
+++ b/pcr/xrdp/xrdp.install
@@ -0,0 +1,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
+}