Latest
This commit is contained in:
parent
8ca129a7e7
commit
1742f19134
2 changed files with 9 additions and 3 deletions
|
@ -257,6 +257,12 @@ if command -v cloudflared > /dev/null && [ -d "$HOME/.local/etc/cloudflared" ];
|
||||||
logg warn '~/.cloudflared is already in the home directory - to ensure proper deployment, remove previous tunnel configuration folders'
|
logg warn '~/.cloudflared is already in the home directory - to ensure proper deployment, remove previous tunnel configuration folders'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### Ensure /usr/local/etc/cloudflared exists
|
||||||
|
if [ -d /usr/local/etc/cloudflared ]; then
|
||||||
|
logg info 'Creating folder /usr/local/etc/cloudflared'
|
||||||
|
sudo mkdir -p /usr/local/etc/cloudflared
|
||||||
|
fi
|
||||||
|
|
||||||
# Copy over configuration files
|
# Copy over configuration files
|
||||||
logg info 'Copying over configuration files from ~/.local/etc/cloudflared to /usr/local/etc/cloudflared'
|
logg info 'Copying over configuration files from ~/.local/etc/cloudflared to /usr/local/etc/cloudflared'
|
||||||
sudo cp -f "$HOME/.local/etc/cloudflared/cert.pem" /usr/local/etc/cloudflared/cert.pem
|
sudo cp -f "$HOME/.local/etc/cloudflared/cert.pem" /usr/local/etc/cloudflared/cert.pem
|
||||||
|
@ -303,8 +309,6 @@ if command -v cloudflared > /dev/null && [ -d "$HOME/.local/etc/cloudflared" ];
|
||||||
sudo launchctl start com.cloudflare.cloudflared
|
sudo launchctl start com.cloudflare.cloudflared
|
||||||
elif [ -f /etc/os-release ]; then
|
elif [ -f /etc/os-release ]; then
|
||||||
# System is Linux
|
# System is Linux
|
||||||
logg info 'Copying over configuration files from ~/.local/etc/cloudflared to /usr/local/etc/cloudflared'
|
|
||||||
sudo cp -rf "$HOME/.local/etc/cloudflared" /usr/local/etc/cloudflared
|
|
||||||
if systemctl --all --type service | grep -q "cloudflared" > /dev/null; then
|
if systemctl --all --type service | grep -q "cloudflared" > /dev/null; then
|
||||||
logg info 'cloudflared service is already available as a service'
|
logg info 'cloudflared service is already available as a service'
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{
|
{
|
||||||
"auths": {},
|
"auths": {
|
||||||
|
"https://index.docker.io/v1/": {}
|
||||||
|
},
|
||||||
"credsStore": "{{ if (eq .host.distro.id "darwin") }}osxkeychain{{ else }}{{ if (eq .host.distro.id "windows") }}wincred{{ else }}secretservice{{ end }}{{ end }}",
|
"credsStore": "{{ if (eq .host.distro.id "darwin") }}osxkeychain{{ else }}{{ if (eq .host.distro.id "windows") }}wincred{{ else }}secretservice{{ end }}{{ end }}",
|
||||||
"currentContext": "default"
|
"currentContext": "default"
|
||||||
}
|
}
|
Loading…
Reference in a new issue