pgsql
This commit is contained in:
		
							parent
							
								
									015f2c2d8e
								
							
						
					
					
						commit
						523d00ecfc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -23,8 +23,8 @@ case "$1" in
 | 
			
		|||
	  if [ ! -d /srv/pgsql/data ];then
 | 
			
		||||
		  install -v -dm700 /srv/pgsql/data
 | 
			
		||||
		  install -v -dm755 /run/postgresql
 | 
			
		||||
		  su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'
 | 
			
		||||
		  chown -Rv postgres:postgres /srv/pgsql /run/postgresql
 | 
			
		||||
		  su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'
 | 
			
		||||
	  fi
 | 
			
		||||
      su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \
 | 
			
		||||
                         -l /srv/pgsql/data/logfile -o "-i" '
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue