Chat-Page: Archivieren-Button durch 3-Dot-Menü ersetzt
This commit is contained in:
1 parent
aa2d9f1200
commit
a927d6da33
5 files changed
+90
-12
No files matched your search
@@ -1,16 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$(hostname)" = "stein2" ]; then
|
||||
echo "stein2 is not allowed to do this"
|
||||
_hostname=$(hostname)
|
||||
|
||||
if [ "$_hostname" = "stein2" ]; then
|
||||
cd /home/node/.openclaw/workspace/projects/gott
|
||||
elif [ "$_hostname" = "meleki" ]; then
|
||||
cd ~/.openclaw/workspace/projects/gott
|
||||
else
|
||||
echo "$_hostname: deployment not allowed"
|
||||
exit
|
||||
fi
|
||||
|
||||
export PATH="$HOME/.dotnet:$PATH"
|
||||
cd ~/.openclaw/workspace/projects/gott
|
||||
|
||||
dotnet publish -c Release -o publish
|
||||
cp wwwroot/index.html publish/wwwroot/index.html
|
||||
|
||||
ssh -o ConnectTimeout=5 meleki@192.168.100.200 "nohup sudo systemctl restart gott > /dev/null 2>&1 &"
|
||||
if [ "$_hostname" = "stein2" ]; then
|
||||
systemctl restart gott
|
||||
elif [ "$_hostname" = "meleki" ]; then
|
||||
ssh -o ConnectTimeout=5 meleki@192.168.100.200 "nohup sudo systemctl restart gott > /dev/null 2>&1 &"
|
||||
fi
|
||||
|
||||
echo "Service restarted"
|
||||
Reference in new issue
Block a user