setup-task-db.sh

来自「nesC写的heed算法」· Shell 代码 · 共 18 行

SH
18
字号
#!/bin/sh#cygrunsrv --install cygipc --desc "CygWin IPC Daemon" --path /usr/local/bin/ipc-daemon --termsig INT --shutdown# start ipc-daemonecho "Setting up PostgreSQL database for TASK.  Only need to do this once."if cygpath / > /dev/null 2>/dev/null; then	ipc-daemon &	export PGDATA=/pgdata	initdbfised -e 's/#tcpip_socket = false/tcpip_socket = true/' /pgdata/postgresql.conf > /tmp/postgresql.confmv /tmp/postgresql.conf /pgdatapg_ctl start -l /tmp/postgresql.log# wait for postmaster to start upsleep 5psql -c "create user tele password 'tiny' createdb createuser;" template1createdb -U tele taskpsql -e task tele < task.sql

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?