Latest
This commit is contained in:
parent
7cee488777
commit
7e605c76d8
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@
|
||||||
{{ includeTemplate "universal/logg" }}
|
{{ includeTemplate "universal/logg" }}
|
||||||
|
|
||||||
if command -v rclone > /dev/null; then
|
if command -v rclone > /dev/null; then
|
||||||
{{- if and (or (and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "CLOUDFLARE_R2_ID"))) (env "CLOUDFLARE_R2_ID")) (or (and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "CLOUDFLARE_R2_SECRET"))) (env "CLOUDFLARE_R2_SECRET")) (ne .user.cloudflare.r2 "") -}}
|
{{- if and (or (and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "CLOUDFLARE_R2_ID"))) (env "CLOUDFLARE_R2_ID")) (or (and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "CLOUDFLARE_R2_SECRET"))) (env "CLOUDFLARE_R2_SECRET")) (ne .user.cloudflare.r2 "") }}
|
||||||
logg info 'Removing ~/.config/rclone/rclone.conf INSTALL DOCTOR managed block'
|
logg info 'Removing ~/.config/rclone/rclone.conf INSTALL DOCTOR managed block'
|
||||||
CONFIG_FILE="$HOME/.config/rclone/rclone.conf"
|
CONFIG_FILE="$HOME/.config/rclone/rclone.conf"
|
||||||
if cat "$CONFIG_FILE" | grep '# INSTALL DOCTOR MANAGED S3'; then
|
if cat "$CONFIG_FILE" | grep '# INSTALL DOCTOR MANAGED S3'; then
|
||||||
|
@ -76,7 +76,7 @@ secret_access_key = {{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates"
|
||||||
type = s3
|
type = s3
|
||||||
# INSTALL DOCTOR MANAGED S3
|
# INSTALL DOCTOR MANAGED S3
|
||||||
EOT
|
EOT
|
||||||
{{- end -}}
|
{{- end }}
|
||||||
|
|
||||||
logg info 'Ensuring /var/cache/rclone exists'
|
logg info 'Ensuring /var/cache/rclone exists'
|
||||||
sudo mkdir -p /var/cache/rclone
|
sudo mkdir -p /var/cache/rclone
|
||||||
|
|
Loading…
Reference in a new issue