Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
LOG_FILE="/root/logfile.txt"
echo "" > ${LOG_FILE}
exec 3>&1 1>>${LOG_FILE} 2>&1
# refresh let's encrypt certificates with godaddy dns challenge
a=$(/root/.acme.sh/acme.sh --issue --dns dns_gd -d subdomain.xxx.yyy --reloadcmd "/root/deploy-freenas/deploy_freenas.py")
echo -e "\nRenewal command finished:" | tee /dev/fd/3
@adorobis
adorobis / enable-docker.sh
Created February 14, 2022 12:10 — forked from tprelog/enable-docker.sh
Enable Docker on TrueNAS SCALE (without kubernetes)
#!/usr/bin/env bash
#
# Enable Docker on TrueNAS SCALE (no Kubernetes)
#
# This script is a hack! Use it at your own risk!!
# Using this script to enable Docker is NOT SUPPORTED by ix-systems!
# You can NOT use SCALE Apps while using this script!
#
# 1 Create a dedicated Docker dataset in one of your zpools
@adorobis
adorobis / makerouter.sh
Last active January 9, 2022 04:29 — forked from davidbalbert/gist:6815258
How to install custom SSL certificates on an ASUS RT-N66U running asuswrt-merlin
###########################################
# IMPORTANT NOTE:
#
# As of asuswrt-merlin 380.67 Beta, you
# can now configure SSL certificates from
# the Webui, making these instructions
# unnecessary.
###########################################