Compare commits
2 Commits
e6b9d84f02
...
662dc1c31b
Author | SHA1 | Date | |
---|---|---|---|
|
662dc1c31b | ||
|
afbcf99932 |
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
nb_bk=$(sudo ls /var/lib/gitea/ | egrep ".*dump.*.zip" |wc -l)
|
nb_bk=$(sudo ls /var/lib/gitea/ | grep -E ".*dump.*.zip" |wc -l)
|
||||||
|
|
||||||
if [ $nb_bk != 0 ]; then
|
if [ $nb_bk != 0 ]; then
|
||||||
echo "EXISTING GITEA BACKUP!"
|
echo "EXISTING GITEA BACKUP!"
|
||||||
@ -9,7 +9,7 @@ fi
|
|||||||
|
|
||||||
sudo -u gitea sh -c "cd ~gitea; gitea dump -c /etc/gitea/app.ini > /dev/null 2>&1"
|
sudo -u gitea sh -c "cd ~gitea; gitea dump -c /etc/gitea/app.ini > /dev/null 2>&1"
|
||||||
|
|
||||||
backup_file=$(sudo ls /var/lib/gitea/ | egrep ".*dump.*.zip")
|
backup_file=$(sudo ls /var/lib/gitea/ | grep -E ".*dump.*.zip")
|
||||||
backup_file="/var/lib/gitea/"$backup_file
|
backup_file="/var/lib/gitea/"$backup_file
|
||||||
sudo mv $backup_file /tmp/
|
sudo mv $backup_file /tmp/
|
||||||
backup_file="/tmp/$(basename $backup_file)"
|
backup_file="/tmp/$(basename $backup_file)"
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /srv/http -d mathux.org --email mathieu@mathux.org
|
#/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /srv/http -d mathux.org --email mathieu@mathux.org
|
||||||
/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /srv/http/letsencrypt -d gitlab.mathux.org --email mathieu@mathux.org
|
#/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /srv/http/letsencrypt -d gitlab.mathux.org --email mathieu@mathux.org
|
||||||
/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /srv/http/letsencrypt -d git.mathux.org --email mathieu@mathux.org
|
#/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /srv/http/letsencrypt -d git.mathux.org --email mathieu@mathux.org
|
||||||
|
|
||||||
|
/usr/bin/certbot certonly --authenticator dns-gandi --dns-gandi-credentials /etc/letsencrypt/gandi.ini -d mathux.org -d \*.mathux.org --server https://acme-v02.api.letsencrypt.org/directory
|
||||||
|
# Emby its proxy served by apache
|
||||||
|
#/usr/bin/openssl pkcs12 -inkey /etc/letsencrypt/live/mathux.org-0001/privkey.pem -in /etc/letsencrypt/live/mathux.org-0001/fullchain.pem -export -out /etc/letsencrypt/live/mathux.org-0001/emby.pfx -passout pass:
|
||||||
|
#chown emby:emby /etc/letsencrypt/live/mathux.org-0001/emby.pfx
|
||||||
#/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /srv/http/letsencrypt -d air.mathux.org --email mathieu@mathux.org
|
#/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /srv/http/letsencrypt -d air.mathux.org --email mathieu@mathux.org
|
||||||
#/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /lib/python3.6/site-packages/homeassistant/components/frontend/www_static/ -d home.mathux.org --email mathieu@mathux.org
|
#/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /lib/python3.6/site-packages/homeassistant/components/frontend/www_static/ -d home.mathux.org --email mathieu@mathux.org
|
||||||
#/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /lib/python3.6/site-packages/homeassistant/components/frontend/www_static/ -d lefevre.mathux.org --email mathieu@mathux.org
|
#/usr/bin/certbot certonly --agree-tos --quiet --renew-by-default --webroot -w /lib/python3.6/site-packages/homeassistant/components/frontend/www_static/ -d lefevre.mathux.org --email mathieu@mathux.org
|
||||||
|
Loading…
x
Reference in New Issue
Block a user