Skip to content

Commit

Permalink
feature: Disabled 3000 port outside streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Oct 12, 2023
1 parent cd03c38 commit 4810cda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions storage/build_tools/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ fi
# Create UI Systemd Service
if [ -f "/etc/systemd/system/liman-ui.service" ]; then
echo "Liman User Interface Service Already Added.";
ENVIRONMENT_SET=$(cat /etc/systemd/system/liman-ui.service | grep Environment >/dev/null && echo 1 || echo 0)
if [ $ENVIRONMENT_SET == "0" ]; then
sed -i '/\[Service\]/a Environment="HOSTNAME=127.0.0.1"' /etc/systemd/system/liman-ui.service
fi
else
echo """
[Unit]
Expand All @@ -200,6 +204,7 @@ Restart=always
RestartSec=1
User=liman
WorkingDirectory=/liman/ui
Environment="HOSTNAME=127.0.0.1"
ExecStart=/usr/bin/node server.js
[Install]
Expand Down
4 changes: 4 additions & 0 deletions storage/build_tools/rhel/liman.spec
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ fi
# Create UI Systemd Service
if [ -f "/etc/systemd/system/liman-ui.service" ]; then
echo "Liman User Interface Service Already Added.";
ENVIRONMENT_SET=$(cat /etc/systemd/system/liman-ui.service | grep Environment >/dev/null && echo 1 || echo 0)
if [ $ENVIRONMENT_SET == "0" ]; then
sed -i '/\[Service\]/a Environment="HOSTNAME=127.0.0.1"' /etc/systemd/system/liman-ui.service
fi
else
echo """
[Unit]
Expand Down

0 comments on commit 4810cda

Please sign in to comment.