diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-07 17:08:21 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-07 17:08:21 -0500 |
commit | faddf6fffa4879efb8fc3e0c3c1ee6fe05fd94d8 (patch) | |
tree | ccf82cc950461c214645b29a76f452108471f56b /pcr/xrdp/xrdp.install | |
parent | d20b2e8a34a7e88fdf6e804b69f7c402006a40bd (diff) | |
download | abslibre-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.install | 15 |
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 +} |