diff --git a/src/freedombone-sec b/src/freedombone-sec index d270183f..9fbb72a1 100755 --- a/src/freedombone-sec +++ b/src/freedombone-sec @@ -48,6 +48,8 @@ MINIMUM_LENGTH=6 IMPORT_FILE= EXPORT_FILE= +CURRENT_DIR=$(pwd) + function get_protocols_from_website { if [ ! -f $WEBSITES_DIRECTORY/$1 ]; then return @@ -315,6 +317,8 @@ function interactive_setup { } function import_settings { + cd $CURRENT_DIR + if [ ! $IMPORT_FILE ]; then return fi @@ -385,6 +389,8 @@ function export_settings { return fi + cd $CURRENT_DIR + if [ ! -f $EXPORT_FILE ]; then if [ "$SSL_PROTOCOLS" ]; then echo "SSL_PROTOCOLS=$SSL_PROTOCOLS" >> $EXPORT_FILE