Stuff
This commit is contained in:
parent
a1b5a32a82
commit
4a4392a3d2
|
@ -1 +1 @@
|
||||||
/Users/danielflanagan/.config/lytedev-dotfiles/common/colors/vim
|
/home/daniel/.home/.config/lytedev-dotfiles/common/colors/vim
|
|
@ -5,7 +5,15 @@ set h $argv[2]
|
||||||
set c $argv[3]
|
set c $argv[3]
|
||||||
|
|
||||||
pushd (dirname $me)
|
pushd (dirname $me)
|
||||||
sudo ln -s (pwd)/user-public-http.conf /etc/nginx/user-public-http.conf
|
function force_link
|
||||||
sudo ln -s (pwd)/user-public-server.conf /etc/nginx/user-public-server.conf
|
sudo rm -f "$argv[2]"
|
||||||
sudo ln -s (pwd)/.nginx-autoindex-before.html /usr/share/nginx/html/.nginx-autoindex-before.html
|
echo "Linking $argv[1] to $argv[2]"
|
||||||
sudo ln -s (pwd)/.nginx-autoindex-after.html /usr/share/nginx/html/.nginx-autoindex-after.html
|
sudo ln -s "$argv[1]" "$argv[2]"
|
||||||
|
end
|
||||||
|
|
||||||
|
force_link (pwd)/user-public-http.conf /etc/nginx/user-public-http.conf
|
||||||
|
force_link (pwd)/user-public-server.conf /etc/nginx/user-public-server.conf
|
||||||
|
force_link (pwd)/.nginx-autoindex-before.html /usr/share/nginx/html/.nginx-autoindex-before.html
|
||||||
|
force_link (pwd)/.nginx-autoindex-after.html /usr/share/nginx/html/.nginx-autoindex-after.html
|
||||||
|
|
||||||
|
echo 'Don\'t forget to include the nginx files in your config inside their respective blocks!'
|
||||||
|
|
Reference in a new issue