File: memcached-u

package info (click to toggle)
pgmemcache 2.3.0-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 284 kB
  • sloc: ansic: 975; sql: 220; makefile: 62; sh: 22
file content (10 lines) | stat: -rw-r--r-- 512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
--- a/expected/start_memcached.out
+++ b/expected/start_memcached.out
@@ -1 +1 @@
-\! memcached -p 33211 -P /tmp/pgmemcache-memcached.pid -d
+\! memcached -p 33211 -P /tmp/pgmemcache-memcached.pid -d $(if [ $(id -u) = 0 ]; then echo "-u postgres"; fi); sleep 1
--- a/sql/start_memcached.sql
+++ b/sql/start_memcached.sql
@@ -1 +1 @@
-\! memcached -p 33211 -P /tmp/pgmemcache-memcached.pid -d
+\! memcached -p 33211 -P /tmp/pgmemcache-memcached.pid -d $(if [ $(id -u) = 0 ]; then echo "-u postgres"; fi); sleep 1