Commit cd6194b7 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

move hooks to it's own directory

parent 19ee27b9
...@@ -23,8 +23,9 @@ ADD app /app/code/app ...@@ -23,8 +23,9 @@ ADD app /app/code/app
# Somehow postinstall is not run automatically when building docker image # Somehow postinstall is not run automatically when building docker image
RUN npm run postinstall RUN npm run postinstall
ADD start.sh server.js openvpn-conf.sh openvpn-on-client-connect.sh openvpn-on-client-disconnect.sh openvpn-on-learn-address.sh easyrsa-config.sh regen-crl.sh /app/code/ ADD hooks /app/code/hooks
RUN chmod +x start.sh openvpn-conf.sh openvpn-on-client-connect.sh openvpn-on-client-disconnect.sh openvpn-on-learn-address.sh easyrsa-config.sh regen-crl.sh ADD start.sh server.js openvpn-conf.sh easyrsa-config.sh regen-crl.sh /app/code/
RUN chmod +x start.sh openvpn-conf.sh easyrsa-config.sh regen-crl.sh
## Setting up TUN device ## Setting up TUN device
RUN mknod /app/code/net-tun c 10 200 RUN mknod /app/code/net-tun c 10 200
......
...@@ -34,7 +34,7 @@ mute 20 ...@@ -34,7 +34,7 @@ mute 20
status /run/openvpn-status.log status /run/openvpn-status.log
# Hooks to update server status # Hooks to update server status
script-security 2 script-security 2
client-connect /app/code/openvpn-on-client-connect.sh client-connect /app/code/hooks/openvpn-on-client-connect.sh
client-disconnect /app/code/openvpn-on-client-disconnect.sh client-disconnect /app/code/hooks/openvpn-on-client-disconnect.sh
learn-address /app/code/openvpn-on-learn-address.sh learn-address /app/code/hooks/openvpn-on-learn-address.sh
" "
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment