aaaaaaaaaaaaaaaaaaaaa
Some checks failed
Update Bot / restart-bot (push) Has been cancelled
Update Bot / deploy-via-sftp (push) Has been cancelled

This commit is contained in:
2025-10-25 02:04:10 +02:00
parent c23b84ab6d
commit 56cb582c12

View File

@@ -51,7 +51,7 @@ jobs:
uses: https://github.com/fifsky/ssh-action@master
with:
command: |
cd ${{ env.REPO_NAME }}/lib/bot
cd /dev/shm
touch token.0
echo ${{ env.BOT_TOKEN }} > token.0
echo $?
@@ -73,11 +73,11 @@ jobs:
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/admin/${{ env.REPO_NAME }}/main.py
ExecStart=/usr/bin/python3 /home/binlab/${{ env.REPO_NAME }}/main.py
User=root
Restart=on-failure
RestartSec=30
WorkingDirectory=/home/admin/${{ env.REPO_NAME }}/
WorkingDirectory=/home/binlab/${{ env.REPO_NAME }}/
[Install]
WantedBy=multi-user.target" >> /etc/systemd/system/${{ env.REPO_NAME }}.service
chmod +x /root/${{ env.REPO_NAME }}/main.py
@@ -86,7 +86,7 @@ jobs:
sudo systemctl start ${{ env.REPO_NAME }}.service
host: 172.17.0.1
user: binlab
key: ${{ secrets.KEY }}
pass: ${{ secrets.KEY }}
create-systemctl-restart:
needs: [create-systemctl-service, add-bot-token, deploy-via-sftp]
@@ -109,4 +109,4 @@ jobs:
sudo systemctl start ${{ env.REPO_NAME }}-watcher.service
host: 172.17.0.1
user: binlab
key: ${{ secrets.SSH_PRIVATE_KEY }}
pass: ${{ secrets.SSH_PRIVATE_KEY }}