Commit 5f8bc872 authored by Laurent Peuch's avatar Laurent Peuch

[fix] bad stuff

parent ba1dbcd3
......@@ -17,11 +17,11 @@ install_static_file() {
final_path=/var/www/neutrinet
sudo mkdir -p $final_path
sudo cp -a ../sources/ $final_path
sudo cp -a ../sources/. $final_path
sudo chown -R www-data: $final_path
if [[ "$path" == "" ]]; then
if [[ "$path" == "" ]] || [[ "$path" == "/" ]]; then
sed -i "s@PATHTOCHANGE@/@g" ../conf/nginx.conf
else
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment