This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Enable docker and docker-compose 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 CANNOT use SCALE Apps while using this script! | |
# | |
# 1 Create a dedicated Docker dataset in one of your zpools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
#### DEPRECATED in favor of https://github.com/deasmi/unraid-tailscale | |
######################################################################## | |
# /boot/config/go | |
# add the following... | |
# Tailscale | |
bash /boot/config/tailscale/install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CountdownLatch = function (limit){ | |
this.limit = limit; | |
this.count = 0; | |
this.waitBlock = function (){}; | |
}; | |
CountdownLatch.prototype.countDown = function (){ | |
this.count = this.count + 1; | |
if(this.limit <= this.count){ | |
return this.waitBlock(); | |
} |