From e43d75fd3c4164bcea0df7a51309b91e293c184b Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Thu, 5 Dec 2019 17:10:30 +0100 Subject: [PATCH] Fixed insufficient permissions when extracting from secrets archive. --- start_or_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start_or_update.sh b/start_or_update.sh index 5f72cd3..633b5d0 100755 --- a/start_or_update.sh +++ b/start_or_update.sh @@ -24,7 +24,7 @@ sudo bash -c "grep -q l2tp_ppp $MODULE_FILE \ test -z $1 || HOST="_$1" test -z $2 || INSTANCE="_$2" test -f ~/secrets.tar.gz.enc || curl -o ~/secrets.tar.gz.enc "https://cloud.scimetis.net/s/${KEY}/download?path=%2F&files=secrets.tar.gz.enc" -openssl enc -aes-256-cbc -d -in ~/secrets.tar.gz.enc | tar -zxv --strip 2 secrets/docker-VPN-client-FR-stack${HOST}${INSTANCE}/keys_privateinternetaccess secrets/docker-VPN-client-FR-stack${HOST}${INSTANCE}/users +openssl enc -aes-256-cbc -d -in ~/secrets.tar.gz.enc | sudo tar -zxv --strip 2 secrets/docker-VPN-client-FR-stack${HOST}${INSTANCE}/keys_privateinternetaccess secrets/docker-VPN-client-FR-stack${HOST}${INSTANCE}/users sudo chown root:13 users sudo chown root:root entrypoint.sh