This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/host/layer/public-webserver/dotfiles-setup.d.fish

18 lines
317 B
Fish
Raw Normal View History

2022-09-29 13:59:18 -05:00
#!/usr/bin/env fish
pushd (dirname (status -f))
set dfp $argv[1]
set homedir $argv[2]
set xdgconfdir $argv[3]
set layerdir (pwd)
function _ln
set source $argv[1]
set dest $argv[2]
sudo rm -f "$dest"
echo "Copying $source to $dest"
sudo ln -s "$source" "$dest"
end
_ln $layerdir/Caddyfile /etc/caddy/Caddyfile