scripts/postgresql.rb in standup-0.3.7 vs scripts/postgresql.rb in standup-0.3.8
- old
+ new
@@ -9,9 +9,15 @@
tune_kernel
sudo 'service postgresql-8.4 restart'
end
+ def exec_sql command
+ su_exec 'postgres', "psql -c \"#{command}\""
+ end
+
+ protected
+
def tune_kernel
sysctl_params = ['kernel.shmmax=134217728', 'kernel.shmall=2097152']
remote_update '/etc/sysctl.conf',
sysctl_params.join("\n"),