Fix sed error in install script
This commit is contained in:
parent
d6c3cfdbd3
commit
fe02477074
@ -30,7 +30,7 @@ fi
|
|||||||
if [ "$filebrowser" = "yes" ]; then
|
if [ "$filebrowser" = "yes" ]; then
|
||||||
$sudo cp $run_directory/systemd-templates/filebrowser.service /etc/systemd/system/
|
$sudo cp $run_directory/systemd-templates/filebrowser.service /etc/systemd/system/
|
||||||
$sudo sed -i -e "s/PH_NAS_USER/$nas_user/g" /etc/systemd/system/filebrowser.service
|
$sudo sed -i -e "s/PH_NAS_USER/$nas_user/g" /etc/systemd/system/filebrowser.service
|
||||||
$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 -s ../sites-available/filebrowser /etc/nginx/sites-enabled/filebrowser
|
||||||
|
Reference in New Issue
Block a user