summarylogtreecommitdiffstats
path: root/forticlient-vpn.install
diff options
context:
space:
mode:
authorDouglas Iuri Medeiros Cabral2021-06-13 22:49:42 -0300
committerDouglas Iuri Medeiros Cabral2021-06-13 22:49:42 -0300
commit7fa48fd08c3204d90a0657a0275daf7a9e300197 (patch)
treec428e42e32e639f9cd005901c2c9026df80736dc /forticlient-vpn.install
parent620e369771b48f998581939f8ffbbc2ce9092355 (diff)
downloadaur-7fa48fd08c3204d90a0657a0275daf7a9e300197.tar.gz
Update to 7.0.0.0018
Diffstat (limited to 'forticlient-vpn.install')
-rw-r--r--forticlient-vpn.install27
1 files changed, 27 insertions, 0 deletions
diff --git a/forticlient-vpn.install b/forticlient-vpn.install
index 3764525ae89f..69523045c905 100644
--- a/forticlient-vpn.install
+++ b/forticlient-vpn.install
@@ -95,6 +95,19 @@ post_install() {
if [ -f /usr/share/icons/hicolor/48x48/apps/forticlient.png ]; then
gtk-update-icon-cache -f /usr/share/icons/hicolor || true
fi
+
+ # Setup forticlient protocol handler
+ if [ -f /usr/share/applications/forticlient-register.desktop ]; then
+ update-desktop-database
+ fi
+}
+
+post_upgrade() {
+cat << EOF
+
+==> After upgrade, to restore your config, copy XML file from /etc/forticlient/.old/ to /etc/forticlient/config.xml
+
+EOF
}
pre_remove() {
@@ -109,11 +122,25 @@ pre_remove() {
echo "terminate" > /tmp/.forticlient/fortitraylauncher || true
fi
+ # Remove ZTNA browser certificates
+ if [ -f /usr/bin/certutil ]; then
+ find /home /root -regextype posix-extended \
+ -regex '(/home/[^/]*|/root)/(.pki/nssdb|.mozilla/firefox/[^/]*default(-release)?)' \
+ -maxdepth 5 -print0 2>/dev/null |
+ while IFS= read -r -d $'\0' p; do
+ /usr/bin/certutil -F -n FCT_ZTNA -d sql:"$p" 2>/dev/null || true;
+ /usr/bin/certutil -D -n FCT_ZTNA_CA -d sql:"$p" 2>/dev/null || true;
+ done
+ fi
+
pkill -f /opt/forticlient
exit 0
}
post_remove() {
+ # Remove shared memory
+ rm -rf /var/run/fctc.s || true
+
# Remove fortitraylauncher fifo
rm -rf /tmp/.forticlient/fortitraylauncher || true
}