diff --git a/install.sh b/install.sh index fe7e97e..d15191c 100755 --- a/install.sh +++ b/install.sh @@ -24,7 +24,7 @@ if [ ! -f /etc/ssl/cert.crt ]; then fi if [ -d /etc/nginx ]; then $sudo cp $run_directory/nginx-blocks/0-http-redirect /etc/nginx/sites-available/0-http-redirect - $sudo ln -s ../sites-available/0-http-redirect /etc/nginx/sites-enabled/0-http-redirect + $sudo ln -sf ../sites-available/0-http-redirect /etc/nginx/sites-enabled/0-http-redirect fi if [ "$filebrowser" = "yes" ]; then @@ -33,7 +33,7 @@ if [ "$filebrowser" = "yes" ]; then $sudo sed -i -e "s:PH_NAS_DIRECTORY:$nas_location:g" /etc/systemd/system/filebrowser.service $sudo cp $run_directory/nginx-blocks/filebrowser /etc/nginx/sites-available/filebrowser $sudo sed -i -e "s/PH_FQDN/$(hostname)/g" /etc/nginx/sites-available/filebrowser - $sudo ln -s ../sites-available/filebrowser /etc/nginx/sites-enabled/filebrowser + $sudo ln -sf ../sites-available/filebrowser /etc/nginx/sites-enabled/filebrowser fi if [ "$dlna_server" = "yes" ]; then @@ -53,7 +53,7 @@ if [ "$dl_server" = "yes" ]; then $sudo cp $run_directory/systemd-templates/transmission-vpn.timer /etc/systemd/system/ $sudo cp $run_directory/nginx-blocks/transmission /etc/nginx/sites-available/transmission $sudo sed -i -e "s/PH_FQDN/$(hostname)/g" /etc/nginx/sites-available/transmission - $sudo ln -s ../sites-available/transmission /etc/nginx/sites-enabled/transmission + $sudo ln -sf ../sites-available/transmission /etc/nginx/sites-enabled/transmission fi if [ "$ftp_server" = "yes" ]; then