1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

Updated permissions

This commit is contained in:
Eldad Fux 2020-02-25 10:42:14 +02:00
parent d6de0d140d
commit d5f415fe59
2 changed files with 5 additions and 5 deletions

View file

@ -130,7 +130,7 @@ COPY ./docker/entrypoint.sh /entrypoint.sh
RUN chmod 775 /entrypoint.sh
# Letsencrypt Permissions
RUN mkdir -p /etc/letsencrypt/live/ && chmod 755 /etc/letsencrypt/live/
RUN mkdir -p /etc/letsencrypt/live/ && chmod -Rf 755 /etc/letsencrypt/live/
EXPOSE 80

View file

@ -95,19 +95,19 @@ class CertificatesV1
}
if(!@rename('/etc/letsencrypt/live/'.$domain->get().'/cert.pem', APP_STORAGE_CERTIFICATES.'/'.$domain->get().'/cert.pem')) {
throw new Exception('Failed to copy certificate cert.pem: '.json_encode($response));
throw new Exception('Failed to rename certificate cert.pem: '.json_encode($response));
}
if(!@rename('/etc/letsencrypt/live/'.$domain->get().'/chain.pem', APP_STORAGE_CERTIFICATES.'/'.$domain->get().'/chain.pem')) {
throw new Exception('Failed to copy certificate chain.pem: '.json_encode($response));
throw new Exception('Failed to rename certificate chain.pem: '.json_encode($response));
}
if(!@rename('/etc/letsencrypt/live/'.$domain->get().'/fullchain.pem', APP_STORAGE_CERTIFICATES.'/'.$domain->get().'/fullchain.pem')) {
throw new Exception('Failed to copy certificate fullchain.pem: '.json_encode($response));
throw new Exception('Failed to rename certificate fullchain.pem: '.json_encode($response));
}
if(!@rename('/etc/letsencrypt/live/'.$domain->get().'/privkey.pem', APP_STORAGE_CERTIFICATES.'/'.$domain->get().'/privkey.pem')) {
throw new Exception('Failed to copy certificate privkey.pem: '.json_encode($response));
throw new Exception('Failed to rename certificate privkey.pem: '.json_encode($response));
}
$certificate = array_merge($certificate, [