Skip to content

Commit 803629f

Browse files
committed
script to remove database lock files
1 parent ac0d388 commit 803629f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"static": "cd packages/static && npm run webpack",
1313
"psql": "export PGHOST=${PGHOST:=$INIT_CWD/data/postgres/socket}; PGUSER='smc' psql",
1414
"database": "cd dev/project && ./start_postgres.py",
15+
"database-remove-locks": "./scripts/database-remove-locks",
1516
"c": "LOGS=/tmp/ DEBUG='cocalc:*' ./scripts/c",
1617
"version-check": "pip3 install typing_extensions mypy || pip3 install --break-system-packages typing_extensions mypy && ./workspaces.py version-check && mypy scripts/check_npm_packages.py",
1718
"test-parallel": "unset DEBUG && pnpm run version-check && cd packages && pnpm run -r --parallel test",

src/scripts/database-remove-locks

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set -ev
2+
3+
rm -vf data/postgres/*.pid
4+
rm -vf data/postgres/socket/.s.PGSQL.5432
5+
rm -vf data/postgres/socket/.s.PGSQL.5432.lock

0 commit comments

Comments
 (0)