Added curl

This commit is contained in:
zeldaroot 2021-01-21 02:23:01 +02:00
parent e9dd43dd96
commit e1fac1fb02
2 changed files with 5 additions and 2 deletions

View file

@ -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 \

View file

@ -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);