Compare commits
4 Commits
921c450f03
...
0371059706
| Author | SHA1 | Date | |
|---|---|---|---|
| 0371059706 | |||
| 1796a21579 | |||
| 8bfe49c947 | |||
| 361c29cf25 |
10
Volumes/ReverseProxy/README.md
Normal file
10
Volumes/ReverseProxy/README.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# DO NOT EDIT
|
||||||
|
|
||||||
|
Manual modifications in these directories is not recommended.
|
||||||
|
Changes should be done via the `certbot` command in the `rp-certbot` container.
|
||||||
|
|
||||||
|
```
|
||||||
|
manage -i rp-certbot
|
||||||
|
```
|
||||||
|
|
||||||
|
Example commands would be `certbot renew` and `certbot delete`.
|
||||||
@@ -9,7 +9,7 @@ source "$DIR/../source.env"
|
|||||||
|
|
||||||
## Variables ##
|
## Variables ##
|
||||||
|
|
||||||
TAG="Docker"
|
TAG="${DIR##*/}"
|
||||||
DATE="`date "+%Y%m%d-%H%M%S"`"
|
DATE="`date "+%Y%m%d-%H%M%S"`"
|
||||||
BACKUP_DIR="/srv/backup"
|
BACKUP_DIR="/srv/backup"
|
||||||
BASENAME="Backup"
|
BASENAME="Backup"
|
||||||
@@ -60,7 +60,7 @@ chown -Rv root:root "$BACKUP_DIR"
|
|||||||
# Remove the last backup.
|
# Remove the last backup.
|
||||||
echo "`date` - Removing existing files."
|
echo "`date` - Removing existing files."
|
||||||
cd "$BACKUP_DIR"
|
cd "$BACKUP_DIR"
|
||||||
mv -v "$BASENAME"*"$TAG"* TRASH/
|
mv -v "$BASENAME."*".$TAG."* TRASH/
|
||||||
rm -v TRASH/*
|
rm -v TRASH/*
|
||||||
|
|
||||||
if [[ "$down" == "TRUE" ]]; then
|
if [[ "$down" == "TRUE" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user