From e10065511b81adb8f755dfdd11b4c2e8433d6da8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 26 Jul 2023 22:15:37 +0300 Subject: [PATCH] add rest of scripts --- scripts/c | 1 + scripts/c2 | 2 ++ scripts/c3 | 1 + scripts/c4 | 1 + scripts/g | 7 +++++++ scripts/p | 1 + scripts/pw | 1 + scripts/s4 | 2 -- 8 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 scripts/c create mode 100644 scripts/c2 create mode 100644 scripts/c3 create mode 100644 scripts/c4 create mode 100644 scripts/g create mode 100644 scripts/p create mode 100644 scripts/pw diff --git a/scripts/c b/scripts/c new file mode 100644 index 000000000..de2110b12 --- /dev/null +++ b/scripts/c @@ -0,0 +1 @@ +journalctl -u rdrama -e -f diff --git a/scripts/c2 b/scripts/c2 new file mode 100644 index 000000000..7bf67b0b3 --- /dev/null +++ b/scripts/c2 @@ -0,0 +1,2 @@ +nano /var/log/rdrama/cron.log +rm /var/log/rdrama/cron.log diff --git a/scripts/c3 b/scripts/c3 new file mode 100644 index 000000000..e809b1318 --- /dev/null +++ b/scripts/c3 @@ -0,0 +1 @@ +journalctl -u rdrama-chat -e -f diff --git a/scripts/c4 b/scripts/c4 new file mode 100644 index 000000000..363072024 --- /dev/null +++ b/scripts/c4 @@ -0,0 +1 @@ +journalctl -u rdrama-marseyworld -e -f diff --git a/scripts/g b/scripts/g new file mode 100644 index 000000000..fc9d8330c --- /dev/null +++ b/scripts/g @@ -0,0 +1,7 @@ +cd /d +git add . +git commit -m "sneed" +git pull +git push +chown -R rdrama:rdrama /d +chown -R rdrama:rdrama /var/log/rdrama diff --git a/scripts/p b/scripts/p new file mode 100644 index 000000000..ea30e1089 --- /dev/null +++ b/scripts/p @@ -0,0 +1 @@ +psql "$DATABASE_URL" diff --git a/scripts/pw b/scripts/pw new file mode 100644 index 000000000..7e0e69d55 --- /dev/null +++ b/scripts/pw @@ -0,0 +1 @@ +psql "$DATABASE_URL" -c "update users set passhash=(select passhash from users where username='Aev9') where id=$1;"; diff --git a/scripts/s4 b/scripts/s4 index 11955bb9a..08c7c6b39 100755 --- a/scripts/s4 +++ b/scripts/s4 @@ -1,5 +1,3 @@ -#!/bin/bash - cd /staging git pull . /es