您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

11 行
488 B

  1. #!/usr/bin/env bash
  2. docker-compose pull
  3. docker-compose down
  4. echo "Curl docker-compose.prod.yml"
  5. curl -s -o docker-compose.yml https://raw.githubusercontent.com/lesspass/lesspass/master/docker-compose.prod.yml
  6. echo "Try to renew LestEncrypt certificate"
  7. docker run -it --rm -p 443:443 -p 80:80 -v $PWD/letsencrypt:/etc/letsencrypt/ certbot/certbot renew
  8. docker-compose up -d
  9. echo "Delete old docker images"
  10. docker images --quiet --filter=dangling=true | xargs --no-run-if-empty docker rmi