This commit is contained in:
Vague Rabbit 2021-02-05 09:36:43 -08:00
parent eec3612efe
commit cb6b68184b
3 changed files with 6 additions and 6 deletions

View file

@ -109,12 +109,12 @@ else
# Populate the DASHBOARD_LOCATION variable # Populate the DASHBOARD_LOCATION variable
DASHBOARD_LOCATION=$(<$HD/Deploy_Saleor/resources/saleor-dashboard/dashboard-location) DASHBOARD_LOCATION=$(<$HD/Deploy_Saleor/resources/saleor-dashboard/dashboard-location)
# Modify the new server block # 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 wait
# Modify the new server block again # Modify the new server block again
sudo sed -i "s|{hd}|$HD|g sudo sed -i "s|{hd}|$HD|g
s/{app_mount_uri}/$APP_MOUNT_URI/g s|{app_mount_uri}|$APP_MOUNT_URI|g
s/{host}/$HOST/g" $HD/Deploy_Saleor/resources/saleor-dashboard/server s|{host}|$HOST|g" $HD/Deploy_Saleor/resources/saleor-dashboard/server
wait wait
echo "Enabling server block and Restarting nginx..." echo "Enabling server block and Restarting nginx..."
sudo ln -s /etc/nginx/sites-available/saleor /etc/nginx/sites-enabled/ sudo ln -s /etc/nginx/sites-available/saleor /etc/nginx/sites-enabled/

View file

@ -462,7 +462,7 @@ fi
if [ "vOPT" = "true" ] || [ "$REPO" = "mirumee" ]; then if [ "vOPT" = "true" ] || [ "$REPO" = "mirumee" ]; then
# Create the saleor service file # Create the saleor service file
sudo sed "s/{un}/$UN/ 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 wait
# Does an old server block exist? # Does an old server block exist?
if [ -f "/etc/nginx/sites-available/saleor" ]; then if [ -f "/etc/nginx/sites-available/saleor" ]; then
@ -480,7 +480,7 @@ if [ "vOPT" = "true" ] || [ "$REPO" = "mirumee" ]; then
else else
# Create the new service file # Create the new service file
sudo sed "s/{un}/$UN/ 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 wait
# Does an old server block exist? # Does an old server block exist?
if [ -f "/etc/nginx/sites-available/saleor" ]; then if [ -f "/etc/nginx/sites-available/saleor" ]; then

View file

@ -16,7 +16,7 @@ ignore-sigpipe = true
ignore-write-errors = true ignore-write-errors = true
disable-write-exception = true disable-write-exception = true
# Modifications # Modifications
socket = {hd}/saleor/saleor.sock socket = {hd}/run/saleor.sock
# socket permissions # socket permissions
chown-socket = {un}:www-data chown-socket = {un}:www-data
chmod-socket = 660 chmod-socket = 660