Initial commit. Tilføjet filer fra Codeberg

This commit is contained in:
GCH
2026-05-18 08:01:36 +02:00
parent 9a22f522ef
commit 4d7e62d8c0
4 changed files with 80 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!bin/bash
#Assuming the NPM conf is at $baselocation
#This script can be placed at /etc/opt/scripts/
umask 077
baselocation="/etc/opt/docker_conf/nginxproxymanager-stack/data/letsencrypt/live/"
latestnpmfolder=$(ls -t "$baselocation"|head -n 1)
certlocation=$baselocation$latestnpmfolder/
pushd $certlocation
cp -L -rf fullchain.pem /etc/ssl/certs/portainer/
cp -L -rf privkey.pem /etc/ssl/certs/portainer/
+5
View File
@@ -0,0 +1,5 @@
# Crontab script as follows
```
0 * * * * sh /etc/opt/scripts/copycert.sh >/dev/null 2>&1
@reboot sh /etc/opt/scripts/copycert.sh >/dev/null 2>&1
```