Add script

This commit is contained in:
Jake Howard 2021-07-08 18:47:10 +01:00
parent b3c64ed3f6
commit ecba33e408
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 12 additions and 0 deletions

12
gitlab-dater.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
REPO_ID=$1
DATE=$2
SQL="UPDATE projects SET updated_at = '$DATE', last_repository_updated_at = '$DATE', last_activity_at = '$DATE' WHERE id = $REPO_ID;"
echo "$SQL"
gitlab-psql -c "$SQL"