Shared dir. Support for other starting points than Firefox
This commit is contained in:
parent
27c6d49e2c
commit
f1cf5237cd
|
|
@ -1,3 +1,3 @@
|
|||
openvpn
|
||||
local
|
||||
shared
|
||||
*~
|
||||
|
|
|
|||
|
|
@ -24,3 +24,4 @@ COPY files/start-openvpn-blocking.sh /home/user/
|
|||
|
||||
ENV HOME /home/user
|
||||
ENTRYPOINT ["/bin/bash", "/home/user/start.sh"]
|
||||
CMD ['firefox']
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ without any cookies, history or such.
|
|||
2. (optional) Create a directory `openvpn` and put your `openvpn.conf` there.
|
||||
Make sure it's called `openvpn.conf` and all extra files it may need are
|
||||
also in the `openvpn/` directory (this will be mounted in the container)
|
||||
3. Start container `./run.sh`
|
||||
3. Start container `./run.sh firefox`
|
||||
|
||||
Also `ASSERT_COUNTRY=Finland ./run.sh` to check that ifconfig.co thinks that
|
||||
the your IP address is in a given country before starting Firefox.
|
||||
Also `ASSERT_COUNTRY=Finland ./run.sh firefox` to check that ifconfig.co thinks
|
||||
that the your IP address is in a given country before starting Firefox.
|
||||
|
||||
### Disclaimer
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
COMMAND="$1"
|
||||
echo "$COMMAND"
|
||||
|
||||
# If no profile ...
|
||||
if [ ! -d "$HOME/.mozilla" ]; then
|
||||
|
|
@ -30,4 +32,4 @@ if [ ! -z ${ASSERT_COUNTRY+x} ]; then
|
|||
fi
|
||||
|
||||
# Start firefox
|
||||
firefox
|
||||
$COMMAND
|
||||
|
|
|
|||
Loading…
Reference in New Issue