From 1e4f89fb436066a3cd553f71431426bb362ff8ae Mon Sep 17 00:00:00 2001 From: hiskang Date: Tue, 28 Feb 2017 17:56:45 +0900 Subject: [PATCH] changes according to Neilpang bash->sh cp -> cat --- deploy/strongswan.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/deploy/strongswan.sh b/deploy/strongswan.sh index 6151152e..2fc74f33 100644 --- a/deploy/strongswan.sh +++ b/deploy/strongswan.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh #Here is a sample custom api script. #This file name is "myapi.sh" @@ -22,14 +22,10 @@ strongswan_deploy() { _debug _cca "$_cca" _debug _cfullchain "$_cfullchain" -# _err "Not implemented yet" - -# return 1 - - cp -pv $_ckey /etc/ipsec.d/private/$(basename $_ckey) - cp -pv $_ccert /etc/ipsec.d/certs/$(basename $_ccert) - cp -pv $_cca /etc/ipsec.d/cacerts/$(basename $_cca) - cp -pv $_cfullchain /etc/ipsec.d/cacerts/$(basename $_cfullchain) + cat $_ckey > /etc/ipsec.d/private/$(basename $_ckey) + cat $_ccert > /etc/ipsec.d/certs/$(basename $_ccert) + cat $_cca > /etc/ipsec.d/cacerts/$(basename $_cca) + cat $_cfullchain > /etc/ipsec.d/cacerts/$(basename $_cfullchain) ipsec secrets