pschmitt / pia-tools

Shell script to automate privateinternetaccess port forwarding and starting/stopping transmission when connected/disconnected and other stuff
https://aur.archlinux.org/packages/pia-tools
GNU General Public License v3.0
132 stars 23 forks source link

"Updating configuration... unzip: cannot find or open , .zip or .ZIP." #34

Closed jhoward321 closed 7 years ago

jhoward321 commented 7 years ago

When running pia-tools --setup, the script fails while trying to unzip the configuration files on Fedora 24. Might be a specific issue with Fedora, but I think it should be a simple fix in the unzip portion of update_config()

HxxxxxS commented 7 years ago

Same issue on raspbian

snus-kin commented 7 years ago

I fixed this by just changing the absolute path when it runs the unzip.

Not sure what that command is doing exactly tbh but I got the program running.

lknows commented 7 years ago

@Uncleleech Could you explain how you did this?

snus-kin commented 7 years ago

@lknows I just changed the the line to the /etc/openvpn/<blah<.zip

efronberlian commented 7 years ago

I am not sure what the $overwrite variable is supposed to do, but without it, the unzip works fine.

At this line:

unzip "$overwrite" -d "$PIA_CONFIG_DIR" -q "$PIA_CONFIG_DIR/openvpn.zip"

change it to:

unzip -d "$PIA_CONFIG_DIR" -q "$PIA_CONFIG_DIR/openvpn.zip"