diff --git a/.forgejo/workflows/restart_service.yml b/.forgejo/workflows/restart_service.yml index bc544df..a762d7e 100644 --- a/.forgejo/workflows/restart_service.yml +++ b/.forgejo/workflows/restart_service.yml @@ -15,5 +15,5 @@ jobs: SSH_PRIVATE_KEY: ${{ secrets.WEBSITE_KEY }} run: | echo "$SSH_PRIVATE_KEY" > /tmp/private_key - chmod 777 /tmp/private_key + chmod 600 /tmp/private_key ssh -i /tmp/private_key -o StrictHostKeyChecking=no website-host-user@spoodythe.one -t 'systemctl restart website.service'