~ubuntu-branches/ubuntu/utopic/openvpn/utopic-proposed

« back to all changes in this revision

Viewing changes to easy-rsa/2.0/tmp/clean-all

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-31 04:55:56 UTC
  • mfrom: (1.1.18) (10.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20111231045556-3fwmrbggevr9iqxd
Tags: 2.2.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
 + debian/openvpn.init.d:
    - Do not use start-stop-daemon and </dev/null to avoid blocking boot.
    - Show per-VPN result messages.
    - Add "--script-security 2" by default for backwards compatabliity.
  + debian/control: Add lsb-base >= 3.2-14 to allow status_of_proc()
  + debian/update-resolv-conf: Support multiple domains.
  + fix bug where '--script-security 2' would be passed for all
    daemons after the first. (LP: #794916)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Initialize the $KEY_DIR directory.
 
4
# Note that this script does a
 
5
# rm -rf on $KEY_DIR so be careful!
 
6
 
 
7
if [ "$KEY_DIR" ]; then
 
8
    rm -rf "$KEY_DIR"
 
9
    mkdir "$KEY_DIR" && \
 
10
        chmod go-rwx "$KEY_DIR" && \
 
11
        touch "$KEY_DIR/index.txt" && \
 
12
        echo 01 >"$KEY_DIR/serial"
 
13
else
 
14
    echo 'Please source the vars script first (i.e. "source ./vars")'
 
15
    echo 'Make sure you have edited it to reflect your configuration.'
 
16
fi