^
This commit is contained in:
parent
eec3612efe
commit
cb6b68184b
3 changed files with 6 additions and 6 deletions
|
@ -109,12 +109,12 @@ else
|
|||
# Populate the DASHBOARD_LOCATION variable
|
||||
DASHBOARD_LOCATION=$(<$HD/Deploy_Saleor/resources/saleor-dashboard/dashboard-location)
|
||||
# Modify the new server block
|
||||
sudo sed -i "s|{dashboard-location}|$DASHBOARD_LOCATION|" /etc/nginx/sites-available/saleor
|
||||
sudo sed -i "s#{dashboard-location}#$DASHBOARD_LOCATION#" /etc/nginx/sites-available/saleor
|
||||
wait
|
||||
# Modify the new server block again
|
||||
sudo sed -i "s|{hd}|$HD|g
|
||||
s/{app_mount_uri}/$APP_MOUNT_URI/g
|
||||
s/{host}/$HOST/g" $HD/Deploy_Saleor/resources/saleor-dashboard/server
|
||||
s|{app_mount_uri}|$APP_MOUNT_URI|g
|
||||
s|{host}|$HOST|g" $HD/Deploy_Saleor/resources/saleor-dashboard/server
|
||||
wait
|
||||
echo "Enabling server block and Restarting nginx..."
|
||||
sudo ln -s /etc/nginx/sites-available/saleor /etc/nginx/sites-enabled/
|
||||
|
|
|
@ -462,7 +462,7 @@ fi
|
|||
if [ "vOPT" = "true" ] || [ "$REPO" = "mirumee" ]; then
|
||||
# Create the saleor service file
|
||||
sudo sed "s/{un}/$UN/
|
||||
s|{hd}|$HD|" $HD/Deploy_Saleor/resources/saleor/template.service > /etc/systemd/system/saleor.service
|
||||
s|{hd}|$HD|g" $HD/Deploy_Saleor/resources/saleor/template.service > /etc/systemd/system/saleor.service
|
||||
wait
|
||||
# Does an old server block exist?
|
||||
if [ -f "/etc/nginx/sites-available/saleor" ]; then
|
||||
|
@ -480,7 +480,7 @@ if [ "vOPT" = "true" ] || [ "$REPO" = "mirumee" ]; then
|
|||
else
|
||||
# Create the new service file
|
||||
sudo sed "s/{un}/$UN/
|
||||
s|{hd}|$HD|" $HD/Deploy_Saleor/resources/saleor/template.service > /etc/systemd/system/saleor.service
|
||||
s|{hd}|$HD|g" $HD/Deploy_Saleor/resources/saleor/template.service > /etc/systemd/system/saleor.service
|
||||
wait
|
||||
# Does an old server block exist?
|
||||
if [ -f "/etc/nginx/sites-available/saleor" ]; then
|
||||
|
|
|
@ -16,7 +16,7 @@ ignore-sigpipe = true
|
|||
ignore-write-errors = true
|
||||
disable-write-exception = true
|
||||
# Modifications
|
||||
socket = {hd}/saleor/saleor.sock
|
||||
socket = {hd}/run/saleor.sock
|
||||
# socket permissions
|
||||
chown-socket = {un}:www-data
|
||||
chmod-socket = 660
|
||||
|
|
Loading…
Reference in a new issue