From 4eff9815f0a26e43cd9875e87a21c72d3207c79e Mon Sep 17 00:00:00 2001 From: Julien Vaubourg Date: Sat, 14 May 2016 21:24:06 +0200 Subject: [PATCH] Fix restore script --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 268b39a..c9ce262 100644 --- a/scripts/restore +++ b/scripts/restore @@ -5,7 +5,7 @@ backup_dir="${1}/apps/vpnclient" mkdir -p /etc/openvpn/ cp -a "${backup_dir}/keys/" /etc/openvpn/ -gitcommit=$(grep revision /etc/yunohost/apps/vpnclient/status.json | sed 's/.*"revision": "\([^"]\+\)".*/\1/') +gitcommit=$(sudo grep revision /etc/yunohost/apps/vpnclient/status.json | sed 's/.*"revision": "\([^"]\+\)".*/\1/') tmpdir=$(mktemp -dp /tmp/ vpnclient-restore-XXXXX) git clone https://github.com/labriqueinternet/vpnclient_ynh.git "${tmpdir}/"