From d502afde4be89804db422a165971d1c59591b46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Tue, 20 Nov 2018 14:09:40 +0100 Subject: [PATCH] ZIP symbolic link --- public/assets/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/assets/js/app.js b/public/assets/js/app.js index aa22750..fba56d9 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -312,10 +312,17 @@ var content = sourceCode.children[0].children[0].innerText; zip.file(name, content); + + if (name.match(/^sites-available\//)) { + zip.file(name.replace(/^sites-available\//, 'sites-enabled/'), '../' + name, { + unixPermissions: parseInt('120755', 8), + }); + } } zip.generateAsync({ type: 'blob', + platform: 'UNIX', }).then(function(content) { saveAs(content, 'nginxconfig.io-' + $scope.domain() + '.zip'); });