Added curl
This commit is contained in:
parent
e9dd43dd96
commit
e1fac1fb02
2 changed files with 5 additions and 2 deletions
|
@ -5,7 +5,7 @@ RUN mkdir -p \
|
|||
/var/run
|
||||
WORKDIR /etc/nginx
|
||||
COPY . /etc/nginx
|
||||
RUN apk add bash dos2unix gzip \
|
||||
RUN apk add bash dos2unix gzip curl \
|
||||
&& dos2unix /etc/nginx/nginx.sh \
|
||||
&& chmod +x /etc/nginx/nginx.sh \
|
||||
&& cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime \
|
||||
|
|
|
@ -215,7 +215,10 @@ function saveContent(content_raw, name, callback) {
|
|||
|
||||
function cp(oldName, newName, callback) {
|
||||
exec('cp ' + oldName + ' ' + newName, function(error, stdout, stderr) {
|
||||
if (error) return callback(error);
|
||||
if (error) {
|
||||
console.error(error);
|
||||
return callback('ERROR: cp ' + oldName + ' ' + newName);
|
||||
}
|
||||
if (stdout) console.log(stdout);
|
||||
if (stderr) console.log(stderr);
|
||||
callback(null);
|
||||
|
|
Loading…
Reference in a new issue