summarylogtreecommitdiffstats
path: root/remote-desktop-manager.install
diff options
context:
space:
mode:
authorThomas Mashos2020-10-01 15:16:43 -0700
committerThomas Mashos2020-10-01 15:17:26 -0700
commit0c6fac19008a74456bcc7ca45fe136f1c78a9f1b (patch)
tree52c5e692aa9aa93f9d461c2f44ef789ffc2bce41 /remote-desktop-manager.install
parent8843c1ddeaf0dc666607ae208a0aa2c88d0f5e22 (diff)
downloadaur-0c6fac19008a74456bcc7ca45fe136f1c78a9f1b.tar.gz
Add cert extraction per https://forum.devolutions.net/topics/34296/problems-registering-rdm-on-linux-closes-at-registration-time
Diffstat (limited to 'remote-desktop-manager.install')
-rw-r--r--remote-desktop-manager.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/remote-desktop-manager.install b/remote-desktop-manager.install
new file mode 100644
index 000000000000..8d8837b61646
--- /dev/null
+++ b/remote-desktop-manager.install
@@ -0,0 +1,21 @@
+# Some colored makepkg-like functions
+msg_blue() {
+ printf "${BLUE}==>${ALL_OFF}${BOLD} ${1}${ALL_OFF}\n"
+}
+
+note() {
+ printf "${BLUE}==>${ALL_OFF}${YELLOW} NOTE:${ALL_OFF}${BOLD} ${1}${ALL_OFF}\n"
+}
+
+ALL_OFF="$(tput sgr0)"
+BOLD="$(tput bold)"
+BLUE="${BOLD}$(tput setaf 4)"
+YELLOW="${BOLD}$(tput setaf 3)"
+
+post_install() {
+ if [ ! -d "/usr/share/.mono/new-certs/Trust" ]; then
+ msg_blue "Extracting ca-anchors.."
+ mkdir -p /usr/share/.mono/new-certs/Trust
+ trust extract --filter=ca-anchors --format=pem-directory-hash --purpose=server-auth /usr/share/.mono/new-certs/Trust/
+ fi
+} \ No newline at end of file