Skip to content

Commit

Permalink
Fix Permission
Browse files Browse the repository at this point in the history
attrib exec permission
  • Loading branch information
michaelsantosti committed Feb 2, 2023
1 parent 85b018b commit d9dd486
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ cp cron_certdocker /etc/cron.d/certbot
#Default Permissions
sudo chown -R 755 .
sudo chown -R www-data:www-data .
sudo chmod +x cert-renew.sh

#Compose Docker
sudo docker-compose -f docker-compose.yml -f docker-compose-production.yml up -d
7 changes: 7 additions & 0 deletions setupfiles/cert-renew.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

#############################
## ##
# CTFd Docker CertRenew #
# Michael Santosti #
## ##
#############################

#Get Certificate Expiration Date
CertEx=`openssl x509 -in /etc/letsencrypt/live/CTFD_DOMAIN_ADDR/fullchain.pem -inform PEM -noout -enddate`

Expand Down

0 comments on commit d9dd486

Please sign in to comment.