Fix rclone
configuration script
This commit is contained in:
parent
10701c7a25
commit
98fed0058f
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/env fish
|
#!/bin/env fish
|
||||||
begin
|
begin
|
||||||
set -l dir (status dirname)
|
set -l dir (status dirname)
|
||||||
|
set -l base "$dir/../../../Common/Software/rclone/main.fish"
|
||||||
source "$dir/../../Scripts/software.fish"
|
source "$dir/../../Scripts/software.fish"
|
||||||
source "$dir/../../../Common/Software/rclone/main.fish"
|
source "$dir/../../../Common/Software/rclone/main.fish"
|
||||||
|
|
||||||
|
@ -9,8 +10,12 @@ begin
|
||||||
rclone
|
rclone
|
||||||
end
|
end
|
||||||
|
|
||||||
function configureSW -V dir
|
function configureSW -V base
|
||||||
fish "$dir/../../../Common/Software/rclone/main.fish" configure
|
fish "$base" configure
|
||||||
|
end
|
||||||
|
|
||||||
|
function userConfig -V base -a name
|
||||||
|
fish "$base" userConfig $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
runInstaller $argv
|
runInstaller $argv
|
||||||
|
|
|
@ -9,7 +9,7 @@ begin
|
||||||
|
|
||||||
function userConfig -V dir -a name
|
function userConfig -V dir -a name
|
||||||
source "$dir/../../Scripts/config.fish"
|
source "$dir/../../Scripts/config.fish"
|
||||||
set -l key "valhalla.users.$name.rclone.configurations"
|
set -l key "valhalla.linux.users.$name.rclone.configurations"
|
||||||
set -l configs (getConfig "$key" --apply "builtins.attrNames" --json)
|
set -l configs (getConfig "$key" --apply "builtins.attrNames" --json)
|
||||||
|
|
||||||
if [ (echo "$configs" | jq "length") -gt 0 ]
|
if [ (echo "$configs" | jq "length") -gt 0 ]
|
||||||
|
|
Loading…
Reference in a new issue