Add force flag to 'ln's
This commit is contained in:
parent
fe02477074
commit
3681d1d026
@ -24,7 +24,7 @@ if [ ! -f /etc/ssl/cert.crt ]; then
|
|||||||
fi
|
fi
|
||||||
if [ -d /etc/nginx ]; then
|
if [ -d /etc/nginx ]; then
|
||||||
$sudo cp $run_directory/nginx-blocks/0-http-redirect /etc/nginx/sites-available/0-http-redirect
|
$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
|
fi
|
||||||
|
|
||||||
if [ "$filebrowser" = "yes" ]; then
|
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 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 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 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
|
fi
|
||||||
|
|
||||||
if [ "$dlna_server" = "yes" ]; then
|
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/systemd-templates/transmission-vpn.timer /etc/systemd/system/
|
||||||
$sudo cp $run_directory/nginx-blocks/transmission /etc/nginx/sites-available/transmission
|
$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 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
|
fi
|
||||||
|
|
||||||
if [ "$ftp_server" = "yes" ]; then
|
if [ "$ftp_server" = "yes" ]; then
|
||||||
|
Reference in New Issue
Block a user