summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Iuri Medeiros Cabral2021-06-13 23:22:21 -0300
committerDouglas Iuri Medeiros Cabral2021-06-13 23:22:21 -0300
commit7a466579e48d8a3a9ff0eb8cd3d02948e2be027c (patch)
tree497680e8d4fe1a82a64b89b8433ec77622133a7a
parentc370f2502c57010baa1ad226e38db246d4477434 (diff)
downloadaur-7a466579e48d8a3a9ff0eb8cd3d02948e2be027c.tar.gz
Create /etc/forticlient/.old/ if config.db exist
-rw-r--r--forticlient-vpn.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/forticlient-vpn.install b/forticlient-vpn.install
index 899b18685470..567b72391f52 100644
--- a/forticlient-vpn.install
+++ b/forticlient-vpn.install
@@ -6,7 +6,7 @@ pre_install () {
# Backup old XML configurations if they exist so they can
# be imported on start up if upgrading from an older FCT version
- if [ -f $FCT_CONFIG ] || [ -f $EC_CONFIG ]; then
+ if [ -f $FCT_CONFIG_DB ] || [ -f $FCT_CONFIG ] || [ -f $EC_CONFIG ]; then
mkdir $BACKUP_DIR && chmod 0600 $BACKUP_DIR
else
exit 0