mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 08:54:19 +00:00
Give ubuntu user access to cert files
This commit is contained in:
parent
336377d606
commit
7024aba3c7
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ if [ ! -f "$CERT_DIR" ]; then
|
|||
sudo apt install -y certbot
|
||||
sudo certbot certonly --standalone -d $DOMAIN --email $EMAIL --agree-tos --non-interactive
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo chmod 755 "$CERT_DIR/privkey.pem"
|
||||
sudo chmod 755 "$CERT_DIR/fullchain.pem"
|
||||
sudo apt-get -y install acl
|
||||
sudo setfacl -m u:ubuntu:--x /etc/letsencrypt/archive
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue