mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 18:05:12 +08:00
Change to sites-available instead of sites-enabled (#31)
* change from sites-enabled to sites-available * add yarn.lock * removed yarn.lock * commands fix * ZIP symbolic link
This commit is contained in:
committed by
Bálint Szekeres
parent
d339981138
commit
ff1ae92ef7
@@ -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');
|
||||
});
|
||||
|
Reference in New Issue
Block a user